> 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
- Re: $a in @b Bart Lateur
- Re: $a in @b Damian Conway
- Re: $a in @b Bart Lateur
- Re: $a in @b Jarkko Hietaniemi
- Re: $a in @b John Porter
- Re: $a in @b Damian Conway
- Re: $a in @b Jarkko Hietaniemi
- Re: $a in @b Damian Conway
- Re: $a in @b Steve Fink
- Re: $a in @b Tom Christiansen
- Re: $a in @b Damian Conway
- Re: $a in @b Steve Fink
- Re: $a in @b Damien Neil
- Re: $a in @b Damian Conway
- Re: $a in @b John Porter
- Re: $a in @b Chaim Frenkel
- Re: $a in @b Damian Conway
- C<map> in RFC 31 David L. Nicol
- Re: C<map> in RFC 31 Damian Conway
- more yield tricks ((was Re: C<... David L. Nicol
- Re: more yield tricks ((was Re: ... Damian Conway
