Remon Shehata
05/27/2021, 3:45 PMval obj : Object = Object() and val obj: Object get() = Object() ?Zach Klippenstein (he/him) [MOD]
05/27/2021, 3:47 PMObject once and stores it in a backing field which is returned every time the obj property is read.
The latter reads Object every time the obj property is read (did you mean Object() there? in that case it would create a new instance on every read.)ephemient
05/27/2021, 4:12 PMget() not @get()ephemient
05/27/2021, 4:12 PMAny not Object in Kotlin codeZach Klippenstein (he/him) [MOD]
05/27/2021, 4:19 PM@get() won’t even compileRemon Shehata
05/27/2021, 4:32 PM