News for hackers. Stuff that matters.
Re:The Three Ways of XOR by _0ffh on Sunday February 12, 2017 @07:44PM (#13632202)
"Sadly XOR doesn’t appear as an equivalent to NOT, AND and OR, as a logical operator on booleans, being relegated to just a bitewise operator in most programming languages."

Well, in C there's just no need. The main raison d'etre for && and || over & and | is that you can exploit their short circuiting behaviour. A hypothetical ^^ operator wouldn't bring anything extra to the table.

Re:The Three Ways of XOR by to3m on Sunday February 12, 2017 @08:05PM (#13632312)
It might at least coerce its operands to bool. As things are, 2&&1 is true, and 2&1 is false; hypothetically, 2^^1 could be false while 2^1 would be (as now) true.
Re:The Three Ways of XOR by di4na on Monday February 13, 2017 @05:20AM (#13634287)
The real problem is that you can not short circuit with XOR.
Re:The Three Ways of XOR by delian66 on Monday February 13, 2017 @08:56AM (#13635170)
You have to evaluate both arguments to a XOR op to know its result. Short circuiting it has no natural meaning.