Hacker News new | ask | show | jobs
by vegetablepotpie 1719 days ago
I think it’s where many functions return 0 when they are successful.
2 comments

maybe cause there's only one way to succeed and many ways to error. 0 success and 1..N are error codes.

what is a reasonable alternative?

(this isnt the same as 0 false and 1 true)

Ok, but:

     success vs. fail
is different than:

     true vs. false
They're both binary, but only one is boolean.