emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 7 logical-xor implementations in source tree


From: Yuri Khan
Subject: Re: 7 logical-xor implementations in source tree
Date: Tue, 23 Jul 2019 18:01:05 +0700

On Tue, Jul 23, 2019 at 5:44 PM Basil L. Contovounesios <address@hidden> wrote:

> Most people seem to define n-ary xor as a parity check (i.e. its result
> is non-nil if the number of non-nil arguments is odd).

The other interpretation, based on the literal meaning of “exclusive
or”, is that the result is non-nil if exactly one argument is non-nil.
(Could actually return that one argument as the result.)

With both interpretations, a vacuous xor is nil.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]