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: Mattias Engdegård
Subject: Re: 7 logical-xor implementations in source tree
Date: Tue, 23 Jul 2019 11:14:42 +0200

23 juli 2019 kl. 10.39 skrev Andy Moreton <address@hidden>:
> 
> Is `logxor' what you are looking for ? Removing duplication would be
> useful.

Pretty sure he meant boolean (nil/non-nil) xor, not bitwise xor.

Some naïve suggestions:

* Call it `xor', to go with `and' and `or'
* Make it n-adic, taking at least 1 argument (since the operation has no 
identity)
* Make it a function, so that it can be used with `apply' etc.
* Give it a compiler macro, for efficient partial application

There is probably already something like this in CL, like everything else.




reply via email to

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