Nir
09/29/2020, 3:56 PMplus
has a single element overload, what's the reason for plusElement existing?nanodeath
09/29/2020, 4:24 PMnanodeath
09/29/2020, 4:24 PMmutableList += element
and list += element
and they mean different thingsilya.gorbunov
09/29/2020, 5:14 PMNir
09/29/2020, 5:20 PMplusElement
has no relationship at all to +=Nir
09/29/2020, 5:20 PMplusAssign
Nir
09/29/2020, 5:21 PM+=
looks for plusAssign, if it doesn't find it, and the LHF is var
and not val
, it will try to expand to list = list + element
-> list = list.plus(element)
Nir
09/29/2020, 5:21 PMnanodeath
09/29/2020, 5:21 PM+
, still holdsNir
09/29/2020, 5:22 PMnanodeath
09/29/2020, 5:22 PMNir
09/29/2020, 5:22 PMNir
09/29/2020, 5:22 PMList<Any>
or something like that 😞Nir
09/29/2020, 5:23 PMNir
09/29/2020, 5:23 PMTobias Berger
09/30/2020, 1:02 PMNir
09/30/2020, 1:50 PM