I would like to make a plea on behalf of all present and future bit-twiddlers who also love the power of Julia.
Would a mathematician be happy if they were told that they had to lose one of their most frequently used operators?
Masking operations are so prevalent, foo &= ~0x00ff
for example, or something like:
(flags & ~(STR_LATIN | STR_ASCII)) == 0
.
Also, it would be nice to actually have !
defined on Integer values, i.e. !(val::Integer) = (val == 0)
,
which would also help with a lot of the bit twiddling. (and that would allow for !!val
to quickly convert an integer value to a Bool
, something frequently desired, instead of val != 0
.
@jeff.bezanson, do you really want to make things even harder for people doing lower-level programming in Julia? Pretty please, save the tilde!