> Date: Sat, 26 Oct 2002 09:16:41 -0700 (PDT)
> From: Larry Wall <[EMAIL PROTECTED]>
>
> We're also missing the actual C operators that are guaranteed to return 0 or 1:
>
> $x ?& $y # C's $x && $y
> $x ?| $y # C's $x || $y
> $x ?! $y # C's, er, !!$x ^ !!$y
And we need those... why? Wouldn't:
?($x && $y)
...
work?
> Yes, but we certainly can't have !=. Another argument for not using
> ! for xor. I guess _ is available as a kind of | laying down.
> Can't have "x". We could use "o" as short for "one or other".
>
> $either = 1 o 2;
> $set o= 1;
> $comp = o $mask;
> if $x oo $y
> $c = $a ~o $b
>
> That's very distinctive. I think I could get to like it.
We also still have binary ? and \, for whatever reason I mentioned
that.
Luke