|
|
|
|
|
by kazinator
3664 days ago
|
|
Zero is good for "absence of failure". It's a "yes" in the sense that "this worked". Whereas any one of the myriad non-zero codes is "no, it didn't work". If we have a situation in which there are many numeric codes, exactly one of which means "success", it's probably best if that one is assigned zero. |
|
https://news.ycombinator.com/item?id=11819810 item #3 (and subsequent discussion)
So why are they punning integers and booleans in the first place?