Add bitwise operations with primitive ints#211
Add bitwise operations with primitive ints#211PatrickNorton wants to merge 11 commits intorust-num:masterfrom
Conversation
Just because we can, doesn't mean we should, and this would be the only operator that mixed |
|
You're right; I hadn't realized that the other operations would have such an issue until after I'd written the |
Correct me if I'm wrong, but Update: wait I realized my mistake lol. The PR is about mixed-type bit ops, so a primitive |
|
I still think the mixed signed-ness is too confusing, let's drop that. |
Fixes #205.
This does not add bitwise-or and bitwise-xor operations between signed integers and BigUint, because there is no good way to represent negative numbers with a BigUint (see #184). Bitwise-and operations were added because the result of such an operation will always be positive.