Hacker News new | ask | show | jobs
by yakaccount4 1308 days ago
I agree. There are several instances of "valid" keys nobody should use.
1 comments

100% with you bud.

Another one which probably shouldn't exist is a map with boolean keys.

Edit: It might be nice if a language compiler detects such bastardizations and spits out a proposal for a better alternative structure or approach, perhaps even stubbornly refusing to proceed to compile such a shitty idea.

Golang already kind of does a spiritual form of this by disallowing unused variables.

This would undoubtedly be similarly controversial. Ego ruins all.