Hacker News new | ask | show | jobs
by foverzar 1316 days ago
Kotlin has this
1 comments

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.