also ``` operator fun <R> KMutableProperty0&...
# stdlib
e
also
Copy code
operator fun <R> KMutableProperty0<R>.setValue(host: Any?, property: KProperty<*>, value: R) = set(value)
operator fun <R> KMutableProperty0<R>.getValue(host: Any?, property: KProperty<*>): R = get()
for setting local
var
from variable references
g
Hmm, but what is the point to delegate property to losal variable? Just to have alias for property?
e
confortability
g
not sure what you mean
e
value.set(x) value.get()
is nowhere comfortable as using a plain local var
g
ahh, I see now
Yeah, it make sense
d
Just make sure to deckare`getValue` on KProperty not KMutableProperty
👍 2
e
uh, right, thanks
k