On Tue, Nov 25, 2003 at 04:48:08PM -0700, Luke Palmer wrote:
> Austin Hastings writes:
> > "C" style C<for> loops then look like:
> > 
> >   for (($a = 0; $b = $num_elts); $a < @arry; ($a++; $b -= $offset)) {...}
> 
> By which you mean
> 
>     loop ($a = 0; $b = $num_elts); $a < @arry; ($a++; $b -= $offset)
>     {...}
> 
> right? 
> 
> Perhaps my favorite syntactic thing Perl 6 has done so far is gotten rid
> of those dastardly parens on control constructs!  Yay!

That combination means that in "for ( ; ; ) { }" the
parens are required, yet in "loop ; ; { }" they are
disallowed.  (Anything in parens immediately following
the keyword would be just the init portion, it could
no longer contain all three parts.)  So, not just the
keyword name, but the syntax is required to change.

Reply via email to