5 ms·
> In most programming languages the boolean operation 'or' is actually 'xor'. I can't think of any where that's true; logical “and” and “or” are usually exactl
by dragonwriter 7y ago
> In most programming languages the boolean operation 'or' is actually 'xor'.
I can't think of any where that's true; logical “and” and “or” are usually exactly what they claim to be, and many languages implement both as short-circuiting operators, whereas XOR can't short circuit because you can never know the result without considering both arguments.