That happens all inside one function, the map is c...
# announcements
s
That happens all inside one function, the map is created there and destroyed
c
yes, but you could hand off the reference to the map to some other thread in a variety of ways, compiler can't know all of them.
anyways "if containsKey -> get else default" is just a poor man's "elvis" 🙂
s
Sorry
That basically means the compiler is not as powerful as he could be
i
Do you mean that the compiler should somehow hardcode an assumption about the contract of one particular type?