I have a vague idea, macro functions (and maybe cl...
# language-proposals
d
I have a vague idea, macro functions (and maybe classes). Where a function is marked with a keyword
macro
and like inline functions, will support "reified" generics and cannot be called outside of Kotlin (i.e Java), but instead of being inlined at the call site, they are generated and called. (Like templates in C++). Any reflection done in the function is inlined. This allows for IDE friendly templates(C++), easy code generation and maybe something similar to LINQ to SQL.
g
There is an idea to provide “compile-time” reflections, such calls that can be replaced with intrinsics and some generated code on compile time and should replace runtime time reflections for native and js and optimize JVM reflections , no particular tasks or proposal about this
d
Where does the idea exist? If it's not in a proposal.
k
I think the language devs said they don't want macros but instead they're going for a unified IDE/compiler plugin system.
d