nic
01/09/2018, 11:22 PMlazy
property that can be cleared, and the next time you go to grab it, it creates a new instance of itself, so you don’t have to scatter the code with variable?.
everywhere, since you’ll never grab a null version of itlouiscad
01/09/2018, 11:23 PMnic
01/09/2018, 11:24 PMkristofdho
01/09/2018, 11:24 PMlouiscad
01/09/2018, 11:25 PMkristofdho
01/09/2018, 11:27 PMval UNINITIALIZED = Any()
you can make it work for nullable types toonic
01/09/2018, 11:27 PMlouiscad
01/09/2018, 11:30 PMval UNINITIALIZED = Any()
instead of a null as the uninitialized valuenic
01/09/2018, 11:30 PMkristofdho
01/09/2018, 11:30 PMnic
01/09/2018, 11:31 PMkristofdho
01/09/2018, 11:31 PMnic
01/09/2018, 11:31 PMkristofdho
01/09/2018, 11:36 PMprivate object UNINITIALIZED
instead of private val UNINITIALIZED = Any()
, again, not that you're needing it 😛nic
01/09/2018, 11:37 PMlouiscad
01/09/2018, 11:38 PMAny()
or a string wrappernic
01/09/2018, 11:38 PMlouiscad
01/09/2018, 11:39 PMnic
01/09/2018, 11:44 PMkristofdho
01/10/2018, 2:44 AM