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

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.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: