News for hackers. Stuff that matters.
Re:Dennis Ritchie on the priorities of && || vs. == etc. (1982) by nyssos on Saturday January 06, 2024 @09:20AM (#38891631)
You've just moved the point where we make the arbitrary choice to here:

> You can interpret "A or B" as a set union and "A and B" as a set intersection.

{True, False, Or, And} and {False, True, And, Or} are two different naming conventions for the exact same structure: the unique boolean algebra on two elements.

Re:Dennis Ritchie on the priorities of && || vs. == etc. (1982) by ninthcat on Saturday January 06, 2024 @01:30PM (#38893846)
A union B is defined as the set of things that are in A or in B; A intersect B is defined as the set of things that are in A and in B. So I don't really see it as an arbitrary choice.