News for hackers. Stuff that matters.
Re:What If I Don't Actually Like My Users? (2008) by userbinator on Friday June 03, 2016 @07:19AM (#11829614)
Comparisons are intuitively boolean

Are comparisons in general boolean? I think specific operators are, but that's because they are asking a particular boolean question. A general "compare X and Y" doesn't seem like it should ever be "true" or "false" (because what would those mean? Different --- in what way, less, greater, or both --- or equal?)

As the sibling comment alludes to, comparisons are really a form of subtraction to the hardware, and C makes this fact very obvious.

There are no comments on this comment yet.