“All successes are zero; each failure is a different number.” —Tolstoy
this is the famous opening comment in <errno_karenina.h>
@dsandler The number of ways I hate only having a single value to indicate success (where failures are multitudes) would overflow most integer representations.
@wordshaper EWOULDBLOCK? why not EWOULDROCK
@dsandler Looking at this code? More like EWOULDHOCK or EWOULDCLOCK.

@dsandler

Again, it is possible [for a Posix process] to fail in many ways (for evil belongs to the class of the unlimited, as the Pythagoreans conjectured, and good to that of the limited), while to succeed is possible only in one way (for which reason also one is easy and the other difficult – to miss the mark easy, to hit it difficult)

  • Aristotle, Nicomachean Ethics
@dsandler this might *actually* help me remember that 0 is success