Re: [PATCH] Implement logical XOR: ^^
[Thread Prev] | [Thread Next]
- Subject: Re: [PATCH] Implement logical XOR: ^^
- From: Ori Bernstein <ori@xxxxxxxxxxxxxx>
- Reply-to: myrddin-dev@xxxxxxxxxxxxxx
- Date: Sat, 17 Mar 2018 01:54:20 -0700
- To: myrddin-dev@xxxxxxxxxxxxxx
- Cc: "S. Gilles" <sgilles@xxxxxxxxxxxx>
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
[PATCH] Implement logical XOR: ^^ | "S. Gilles" <sgilles@xxxxxxxxxxxx> |
- Prev by Date: [PATCH] Implement logical XOR: ^^
- Next by Date: [PATCH] Allow intfmt to handle uint64s with {p=0,w=64,b=2}
- Previous by thread: [PATCH] Implement logical XOR: ^^
- Next by thread: [PATCH] Allow intfmt to handle uint64s with {p=0,w=64,b=2}
- Index(es):