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: Barry Fishman
Subject: Re: 7 logical-xor implementations in source tree
Date: Tue, 30 Jul 2019 10:25:33 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

On 2019-07-30 08:34:13 -04, Stefan Monnier wrote:
>> Please do not add `iff' as a symbol under any circumstance.
>>
>> Short names must be universally understood by readers of the code with a
>> wide range of expertise and experience. A short name must also be needed
>> due to frequent use in typical code. This usage meets neither test.
>
> +1

I find the iff and xor not obvious.  xor seems like it should be the
bitwise operation.   Why not something like bool-equal and
bool-not-equal being better at conveying exactly what is going on.

bool-eq and bool-ne is less clear, but shorter.

With bool= and bool/=, the latter suffers from the dual use of / in
symbols.

--
Barry Fishman




reply via email to

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