Another idea: inlineable references to avoid refle...
# language-proposals
a
Another idea: inlineable references to avoid reflection in generated code. For example
if (right != null) lvalue = right
becomes
right?.assignTo(::lvalue)
Copy code
inline fun<T> T.assignTo(lvalue: KMutableProperty0<T>): T {
    lvalue.set(this)
    return this
}
👍 2