A Plea for Bit-Twiddlers! (please keep ! as logical negation, separate from bitwise negation!)

That would be part of my proposal (A Modest Proposal (for !, &, | and ~)), which is based on the proposal by @sacha (explore fixing #5187 via and/or/xor/not and associated updating ops by Sacha0 · Pull Request #25180 · JuliaLang/julia · GitHub). Note that when applied to boolean values, and and or would act as non-shortcircuiting logical operations (as do & and | currently), and not(someboolean) would act the same as !someboolean.

1 Like