Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


There 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.


It has nothing to do with aesthetics why you can add to a nil array but not to a nil map. That's pure jank.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: