Larry Wall wrote:

> I was thinking more along the lines of:
> 
>     $x &&& $y
>     $x ||| $y

I very much like the new suggested uses for C<&> and C<|>, and making
the rarely-useful bitwise ops be longer to type.

But I'm not keen on trippled symbols: I reckon it's two easier to muddle
them with their doubled counterparts when scanning code, much easier
than it is to confuse single and doubled symbols.  The C<==> and C<===>
distinction in PHP is not easy to spot.

> But then there's ~ vs ~~~ too.

That gave me an idea.  What about using the tilde as the first character
in bitwise ops?

  $x ~& $y  # bitwise and
  $x ~| $y  # bitwise or

  ~!$x      # bitwise not

Smylers

Reply via email to