Larry Wall wrote: > On Tue, Nov 18, 2003 at 06:28:59PM -0500, Gordon Henriksen wrote: > > > my @b = for @a -> $_ { > > ... > > } > > That will be a syntax error. Generators are too mind-stretching to > inflict on novices [...]
I making the point that within the context of this we-wish-loops-were- expressions discussion, the "for expression" was simply another way to spell map, at least when autoiterating an array. I certainly wasn't thinking in terms of coroutines--they absolutely deserve a large syntactic barrier. > > # (Apologies for the perl5-isms.) > > for @a -> $_ { > > push @b: do { ... }; > > } > > Hmm? I see no perl5-isms there. Or rather, I see no > non-perl6-isms... It's been a while since I read Apocalypses; I wasn't sure if do { } (still) meant what I meant it to mean ("the result of the last statement in the block"). There was also a scalar() in there when I wrote the apology, but I removed it on further consideration of the equivalence to map {}. :) -- Gordon Henriksen IT Manager ICLUBcentral Inc. [EMAIL PROTECTED]