xor condition

2011-07-16 Thread Matt Benson
Currently each nested condition is xor'd against the cumulative result, thus: xor(true, false) == true xor(true, false, true) == false xor(true, false, true, false) == false Is this correct? It would seem that semantically an xor over multiple nested conditions should mean that exactly one

Re: xor condition

2011-07-16 Thread Stefan Bodewig
On 2011-07-17, Matt Benson wrote: Currently each nested condition is xor'd against the cumulative result, thus: xor(true, false) == true xor(true, false, true) == false xor(true, false, true, false) == false Is this correct? It would seem that semantically an xor over multiple nested

Re: xor condition

2011-07-16 Thread Matt Benson
On Sat, Jul 16, 2011 at 10:21 PM, Stefan Bodewig bode...@apache.org wrote: On 2011-07-17, Matt Benson wrote: Currently each nested condition is xor'd against the cumulative result, thus: xor(true, false) == true xor(true, false, true) == false xor(true, false, true, false) == false Is

Re: xor condition

2011-07-16 Thread Stefan Bodewig
On 2011-07-17, Matt Benson wrote: , | It only evaluates to true if an odd number of nested conditions are true. ` So is this an accepted kind of xor? Accepted by the original author (Steve IIRC), silently accepted by all reviewers back then and in a way accepted as that's what it