I'm a bit torned by the binary XOR operator… whilst I can see that it is consistent with other area of catechism and that it works. I do worry about the mental block / effort required for junior developers to translate that logic when they read the code….
I'm 50/50 about this….