if we have set/get operator on not nullable elemen...
# language-proposals
e
if we have set/get operator on not nullable elements (
!!
) we shall also have it after
.?
k
Can you give an example of what you mean?
e
array!![0]
and
array?.get(0)
f
This is different because
array!!
is an expression and
array?
is not. You can visualize it by putting parentheses
(array!!)[0]
vs
(array?)[0]
or
(array?.)[0]
Not to say it’s impossible to special case that, other languages have done it
k
👎 1
youtrack 1
👍 2