thomasnield
03/04/2016, 10:02 PMsingleAssign()
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()
)