in reply to comparison with bitwise operators

In Perl 6 you can write
if $var == 2|3 { do stuff }

Where 2|3 is a so-called Junction.