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: Drew Adams
Subject: RE: 7 logical-xor implementations in source tree
Date: Wed, 31 Jul 2019 14:38:01 -0700 (PDT)

I don't understand what all the excitement
about defining an `xor' (with whatever name)
operator is about.

Common Lisp, like Emacs Lisp, has a bit-wise
xor operator.  That makes sense - useful.

And Common Lisp, like Emacs Lisp, does _not_
have an xor operator for arbitrary Lisp values.

https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node75.html

Why is it important that Emacs Lisp have such
an operator?  (Answer: it's not - YAGNI.)

Is it hard to understand (eq (not a) (not b))?
Is evaluation of that inefficient?  Is it too
verbose?

What's the motivation for all of this?

My vote's against adding any such operator.



reply via email to

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