3 ms·
"a == b" is the same as "not (a != b)" Maybe I'm simple minded though.
by the5avage 2y ago
"a == b" is the same as "not (a != b)"
Maybe I'm simple minded though.
- int_19h 2y agoIf you treat each "!" as a NOT, then (a != b != c) has two NOTs, but !(a == b == c) has a single one, so this is a bit like expecting that !(a && b) is the same as (!a && !b).
- Doxin 2y ago"a == b == c" translates to "a == b and b == c", similarly "a != b !=c" translates to "a != b and b != c"