[Top][All Lists]

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

Re: 7 logical-xor implementations in source tree

From: Philippe Schnoebelen
Subject: Re: 7 logical-xor implementations in source tree
Date: Sun, 28 Jul 2019 09:09:01 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 2019/07/25 14:07, Mattias Engdegård wrote:
> 25 juli 2019 kl. 01.44 skrev Basil L. Contovounesios <address@hidden>:
> bool-equal, bool-equiv, bool=, bool-eq are all fine as far as I'm concerned. 
> `xnor' and `nxor', not so much.
> Racket has `boolean=?', but presumably it only copes with #t/#f.
> I'll be using `equiv' as placeholder below for brevity.

I like the name `iff'  for this function.

>>> - There's no use for it, currently.  If we can't find any use for it,
>>>  I'm not sure it deserves to be in subr.el.

I use the function a lot in ert tests, like in

      (should (iff (null somelist) (zerop (length somelist))))


reply via email to

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