Andy Victors05/14/2019, 5:16 PM
being frozen - technical limitation or a language concept? What us then the alternative of keeping the global modifiable list of, say, users in the app?
Marko Mitic05/14/2019, 5:22 PM
Andy Victors05/14/2019, 5:24 PM
Marko Mitic05/14/2019, 5:31 PM
obobo05/14/2019, 5:52 PM
, or setting a mutable object (like a
) as a field?
Andy Victors05/14/2019, 7:00 PM
. Will try the same using `var`and report.
private val fetchers: ArrayList<DataSourceFetcher> = ArrayList()
Casey Brooks05/14/2019, 8:24 PM
for mutable singletons is to use
or other atomic data structures. I was fighting this a while ago and that really is the only route, unfortunately
obobo05/14/2019, 8:28 PM
ilya.gorbunov05/14/2019, 9:20 PM
obobo05/14/2019, 9:21 PM
Andy Victors05/16/2019, 11:23 AM
is not available for me? Kotlin '1.3.30'
Marko Mitic05/16/2019, 12:32 PM
Andy Victors05/16/2019, 12:33 PM
Marko Mitic05/16/2019, 12:34 PM
Andy Victors05/23/2019, 1:45 PM
Once an object is frozen, all its children objects are also frozen.Is there any option to distinguish between real children (owned) and referenced objects? Currently if I pass some object in constructor to the frozen object, that one is also get frozen which is not what I want.