allow binary not, binary and, binary or, binary xor, and boolean not operators on vectors of bool #24093
Labels
accepted
This proposal is planned.
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Given that:
!
and~
will be the same for bools.!=
and^
will be the same for bools.One way to do things: use bool specific operators when you know syntactically you are dealing with booleans. Use the bitwise alternative for generic code.
Related:
and
cannot operate on vectors of bool despite the manual claiming otherwise #14306As additional criteria to close this issue please adjust the langref so that it is unambiguous that
and
andor
cannot be used with vectors of bool, for instance by adjusting this text:The text was updated successfully, but these errors were encountered: