Also, another conversation, but now that we have `...
# stdlib
k
Also, another conversation, but now that we have
provideDelegate
, might it be nice to have interfaces to go with it, like
ReadOnlyPropertyFactory<R, T>
and
ReadWritePropertyFactory<R, T>
? I've seen a few use cases where I'd like to have access to the property name and
thisRef
at creation of the delegate, but currently it looks like you need to have your own named class that implements
provideDelegate
to use this feature; you can't just make a function that provides a delegate and have it return
object { override fun provideDelegate... }
because Kotlin won't understand that the contract for
provideDelegate
is fulfilled
➕ 1