Luke Palmer wrote:

Aaron Sherman writes:


$foo??0::split()

ouch!



Yeah, seriously. I mean, what a subtle bug! It would take him hours to
figure out went wrong!


Sarcasm is an ugly thing.

One thing that I just thought of that could be intersting:

   $foo => 'a' or 'b'

My thought was that logic operators could treat a pair specially by testing C<.key>, but returning C<.value>... hence no overloading of C<or>... it's the way everything works (or everything is overloaded, depending on how you look at it). The problem would be that that C<'a'> would be evaluated regardless of C<$foo>'s value. There it makes no difference, but here:

 $foo => a() or b()

it's huge... But it seems to me that something like this would be the way to go if you could make it work.



Reply via email to