Re: Perl 6's for() signature

2003-08-09 Thread Jonadab the Unsightly One
"Abhijit A. Mahabal" <[EMAIL PROTECTED]> writes: > There is another problem beyond efficiency: the P6 list semantics is lazy. > > The following is valid P6, AFAIK: > > for 1 .. Inf { > print $_; > last when 10; > } Yeah, but that's a foreach loop, despite the fact that "foreach" is spelled

Re: Perl 6's for() signature

2003-08-09 Thread Luke Palmer
> "Abhijit A. Mahabal" <[EMAIL PROTECTED]> writes: > > > There is another problem beyond efficiency: the P6 list semantics is lazy. > > > > The following is valid P6, AFAIK: > > > > for 1 .. Inf { > > print $_; > > last when 10; > > } > > Yeah, but that's a foreach loop, despite the fact th