Mark
04/30/2019, 11:53 AMemptyList()
is a fun
and not a val
? I can only guess it’s to do with genericsilya.gorbunov
04/30/2019, 2:42 PMemptyList
could be a property of type List<Nothing>
, but we decided that making it a function and thus having to specify its type parameter when it can't be inferred would be advantageous for reading code.ilya.gorbunov
04/30/2019, 2:44 PMemptyMap
which on the contrary can't be a property, because of its invariant K
type parameter.