3 ms·
>where booleans cannot be compared Sounds like a way to make XOR be a big pain. Or do you only want to ban comparing to literals? It can make things clearer
by Dylan16807 13y ago
>where booleans cannot be compared
Sounds like a way to make XOR be a big pain.
Or do you only want to ban comparing to literals? It can make things clearer to write something like "if bool==false" rather than "if not bool", especially when double negatives get involved.
Only ban comparing to literal true? Sure, go for it. But then the language is more complex for no real benefit.