Hacker News new | comments | show | ask | jobs | submit login

I call it the Tolstoy model:

    "All happy families are alike; each unhappy family
    is unhappy in its own way"
You only need one value for success/true. But you need many to indicate the modes of failure.



How about not using numbers for Booleans?


CPUs grok numbers. This would be inefficient.


Oh, you can use numbers behind the scenes. Just make sure your type system hides the ugly truth.




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

Search: