 |
conditional - Is it good practice to use the XOR (^) operator in Java for boolean checks? - Stack Ov
With code clarity in mind, my (subjective...) opinion is that using XOR in boolean checks is not typical usage for the XOR bitwise operator. From my experience bitwise XOR in Java is typically used to implement a mask flag toggle behaviour: flags = flags
stackoverflow.com |
 |