mir-algorithm
mir-algorithm copied to clipboard
Bitwise operations on `bitSlice`
I expected the following to be allowed:
auto a = bitSlice(x);
auto b = bitSlice(x);
a[] |= b[];
Iterating through individual bits and computing the bitwise operation one-by-one kinda ruins the whole idea of storing the bools as bits that these operations would be allowed.
Maybe it's not part of what bitSlice are designed to do, but then why is assigning the whole range to some value allowed?