> Both are pretty much the same. Combining them, I'd say that exceptions
   > should remain exceptional.

I'd say short-circuiting a vector operation was exceptional enough. :-)


   > Counterproposal: grep, map, etc. define two implicit magic labels
   > 'ACCEPT' and 'REJECT' that behave in the expected way, so you use
   > ($first_small) = grep { ($_ < 2) and last ACCEPT } @list.

I considered this solution, but rejected it precisely because...

   > You wouldn't be able to escape the innermost enclosing grep or map
   > with this. I'm not sure if that's good or bad.

Bad, I think.

Damian

Reply via email to