As a getter or setter property usually does not have a function as an argument, but is reified , what are the advantages / benefits of using inline properties?
If the benefits would be to reduce the cost of calling a method, why not make all getter / setter inline properties the default?
Kotlin intrinsic properties
Eg.
val foo: Foo inline get() = Foo() var bar: Bar get() = ... inline set(v) { ... }
kotlin
Yudhistira arya
source share