Join Slack
Powered by
That happens all inside one function, the map is c...
# announcements
s
sveri
11/23/2017, 7:20 PM
That happens all inside one function, the map is created there and destroyed
c
Czar
11/23/2017, 7:24 PM
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.
Czar
11/23/2017, 7:25 PM
anyways "if containsKey -> get else default" is just a poor man's "elvis" 🙂
s
sveri
11/23/2017, 7:28 PM
Sorry
sveri
11/23/2017, 7:31 PM
That basically means the compiler is not as powerful as he could be
i
ilya.gorbunov
11/23/2017, 9:33 PM
Do you mean that the compiler should somehow hardcode an assumption about the contract of one particular type?
2
Views
Open in Slack
Previous
Next