can I also ask, is there a more elegant way to do ...
# announcements
g
can I also ask, is there a more elegant way to do this?
Copy code
internal var initialized = false
    internal var _value: T? = null
    internal var value: T?
        get() { require(initialized); return _value }
        set(value) { _value = value; initialized = true }