Probably a long-shot, and feel free to shoot it do...
# language-proposals
t
Probably a long-shot, and feel free to shoot it down. Would you guys at JetBrains be opposed to implementing our
singleAssign()
delegate as part of the Kotlin standard library? Our implementation is here on the TornadoFX project(https://github.com/edvin/tornadofx/blob/master/src/main/java/tornadofx/Properties.kt#L52:L115). It allows making a property assignable only once and I've found it much more effective than
lateinit
since it locks down mutability and threading problems (unless you pass parameters to make it unsynchronized like
lazy()
)