----- Original Message ----- From: "Hanson, Rob" <[EMAIL PROTECTED]> To: "'Rod Adams'" <[EMAIL PROTECTED]>; "Perl 6 Language" <[EMAIL PROTECTED]> Sent: Thursday, July 31, 2003 1:29 PM Subject: RE: Perl 6's for() signature
> > Anyone but me feel the need for non-greedy > > slurpy arrays? similar to non-greedy RE matches? > > I definately like the idea of having something like that. It probably > wouldn't be used much, but it is nice to have the option. > > One thing though, can't you accomplish the same thing by slurping > everything, then poping the block off of the array? > > Rob Yes, but you lose compile-time type checking on the last parameter. I would prefer to have for 1,2,3; fail at compile-time, not run time;