<https://kotlinlang.slack.com/archives/general/p14...
# announcements
i
https://kotlinlang.slack.com/archives/general/p1450699802006114
Map.get
method contract is tightly bound with
Map.contains
, so that
get
must return
null
when
contains
returns
false
for the particular key. Making
Map.get
return default value in such case would violate its contract. Thus we have found no better way to solve it than introducing new method with the desired behavior.