Eigenstate: myrddin-dev mailing list

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

Re: [PATCH] Implement logical XOR: ^^


On Sat, 17 Mar 2018 04:26:40 -0400, "S. Gilles" <sgilles@xxxxxxxxxxxx> wrote:

> ---
> 
> I wanted to xor two bools, and writing "a ? !b : b" feels a bit
> wrong. I'm not sure if there are subtlties to flattencond() that
> I've missed, but it seems to work.

Nice patch, but we've already got one. 

https://78.media.tumblr.com/a225ecbc2320a614827d06cd37a71560/tumblr_nw6cb36B5b1rpduwho1_500.gif

The patch looks like it's implemented right to me, but I think you'll
find that what you implemented behaves the same as the'!=' operator,
unless I missed some subtlety.

-- 
    Ori Bernstein

References:
[PATCH] Implement logical XOR: ^^"S. Gilles" <sgilles@xxxxxxxxxxxx>