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: Basil L. Contovounesios
Subject: Re: 7 logical-xor implementations in source tree
Date: Wed, 31 Jul 2019 23:22:49 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> I vote to define either `bool-equal` or `xor` (and this "or" is mutually
> exclusive ;-), in either case taking exactly 2 arguments (while those
> functions can be generalized to more, it's far from clear that it's
> worth the trouble.  After all `equal` still only takes 2 args).
>
> Then replace the various uses of <foo>-xor with calls to this
> new function.

+1.

If I had to pick one or the other, I would go with xor purely because it
is the one that has been copied several times.  But I am also perfectly
happy with bool-equal, especially if it is the historically/classically
preferred function.

Thanks,

-- 
Basil



reply via email to

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