add unary / binary bitwise operators for hex numbers
planned
B
Bryce Arden
It would be awesome if we could add back the bitwise operators for Soulver 2. This is the primary feature that is preventing me from upgrading. Attached is a picture showing that the bitwise & operator does not work in Soulver 3
```shell
$ python
>>> 255 & 0xAA
170
```
Operations that are missing in Soulver 3 and are present in Soulver 2.
* & (bitwise AND)
* | (bitwise OR)
* ^ (bitwise XOR)
* << (left shift)
* >> (right shift)
* ~ (bitwise NOT)
Zac @ Soulver
planned
Thanks Bryce, this is planned.
Zac @ Soulver
Should an expression like "255 & 0xAA" return the final number in hex or decimal?
B
Bryce Arden
Zac @ Soulver: I think 255 & 0xAA should return decimal but something like
val = 255 & 0xAA in hex
should cast the value to a hex number. I think this follows the semantics that replaces the dropdown in the format bar for Soulver 2.