Hacker News new | ask | show | jobs
by thomascgalvin 1319 days ago
Kotlin has this, but the Map is (usually) a MutableMap under the covers, because it's Java bytecode at the lower levels. You have to go out of your way to footgun yourself, but it's still possible.