Hacker News new | ask | show | jobs
by SonOfLilit 3412 days ago
It's not "just an implementation decision"[1], it's a reasonable mathematical definition: for a binary operator OP, we define it's n-parameter version whenever a OP (b OP c) == (a OP b) op c, which is true for XOR but not e.g. for XNOR (F == F) == T is F, but F == (F == T) is T.

[1] and sorry if I'm falling victim to the difficulty of interpreting tone on the internet

1 comments

By symmetry it must be true for XNOR also, and:

  (F == F) == T in fact is T