diesieben07
05/29/2018, 5:30 PMpoohbar
05/29/2018, 5:31 PMList
just become ImmutableList
.. why do we need both a "read-only" list and "immutable" list?diesieben07
05/29/2018, 5:32 PMpoohbar
05/29/2018, 5:33 PMList
at the moment because in future it might become fully immutable.diesieben07
05/29/2018, 5:34 PMkarelpeeters
05/29/2018, 5:35 PMimmutableListOf()
instead of listOf()
?poohbar
05/29/2018, 5:40 PMimmutableListOf()
is too long.. I am against collection literals but we need reasonably short builder methodskarelpeeters
05/29/2018, 5:41 PMlistOf()
I meant that I wanted an immutable list.poohbar
05/29/2018, 5:48 PMbissell
05/29/2018, 6:05 PMpListOf()
builder and pointing it to some Java persistent collections implementationpoohbar
05/29/2018, 6:08 PMbissell
05/29/2018, 6:17 PMpoohbar
05/29/2018, 6:28 PMgreybird
05/29/2018, 7:15 PMkarelpeeters
05/29/2018, 7:15 PMpoohbar
05/29/2018, 7:15 PM(listOf(1,2,3) as ArrayList).add(5);
greybird
05/29/2018, 7:17 PMkarelpeeters
05/29/2018, 7:18 PMlistOf()
to java code and be sure that it's really immutable.List
and assume it is immutable, since it may be a MutableList
from the caller's point of view.poohbar
05/29/2018, 7:20 PMkarelpeeters
05/29/2018, 7:21 PMgreybird
05/29/2018, 7:56 PMjava.util.Collections.unmodifiableList(java.util.ArrayList())
so that Java code can't change it?poohbar
05/29/2018, 8:05 PMgreybird
05/29/2018, 8:08 PM