is there a discussion of having the compiler do so...
# compiler
g
is there a discussion of having the compiler do something to convert
someMap[key]!!...
into
someMap.getValue(key)...
?
e
We had some internal discussion, but I'm not even sure we have issue for it in our tracker
g
its something I've run into a lot, my idiomatic use of maps would be better served if i had a map type that didnt allow for null keys or null values
e
But you don't have to use maps with null keys/values.
d
The reason that
someMap[key]
is nullable is not because the map can contain null values, it is because the expression is null if the key does not exist in th emap.
👍 1