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

> Comparisons are intuitively boolean unless there's a clear reason to be otherwise

To support sorting. The result of a "comparison" does not imply the testing for equality or equivalence. I can "compare" lots of things, and my results are not strictly boolean. A "comparison" often implies one thing is "better" or "worse" or the "same" as another thing.



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

Search: