4 ms·
Go is not well-designed because it is simple. It is poorly designed because it fails to be so. All the weird interactions with nil for example.
by sirwhinesalot 2y ago
Go is not well-designed because it is simple. It is poorly designed because it fails to be so. All the weird interactions with nil for example.
- tankenmate 2y agoThere is a whole raft of ways to deal with nil, 0, NULL, NaN, etc. And of course different languages do it differently, primarily because of different requirements and/or aesthetics. Just because you don't you don't agree with the choices doesn't mean it isn't well designed, if it achieves the goals set forth then it is well designed. Disagreeing with the goals is a different (although related) issue.
- sirwhinesalot 2y agoIt has nothing to do with aesthetics why you can add to a nil array but not to a nil map. That's pure jank.