[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why don't bools have (some) bitwise operators?
- From: Gavin Wraith <gavin@...>
- Date: Tue, 23 Feb 2021 17:09:06 GMT
In message <01151779-8fc8-5e7c-9340-a60dbafecb99@gmail.com>
"Soni \"They/Them\" L." <fakedme@gmail.com> wrote:>
Uh bools currently don't have xor so instead you have to write silly
>things like
>
>local a = ...
>local b = ...
>if (a and not b) or (b and not a) then
> ...
>end
>
>And it'd look way cleaner with xor
>
>if ... ~ ... then
> ...
>end
>
>Thoughts?
a ~= b ?
--Gavin Wraith (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/