> DC> I would propose that the C<grep> operation should short-circuit if the
   > DC> block throws an exception, with the value of the expection determining
   > DC> whether the final invocation of the block should accept the element it
   > DC> was filtering:
   > 
   > Why not spell it 'yield'?
   > 
   > It seems to have all the right connotations.
   > 
   > A sort of soft return. Gives of itself. Very polite.

:-)

I did consider that too, but the problem is that according to RFC 31 a
C<yield> leaves the future entry point of a block at the next statement
after the C<yield>, whereas the block needs to start from the beginning on
each iteration.

Damian

Reply via email to