develooper Front page | perl.perl6.language | Postings from April 2003

Re: S6: Change in if syntax?

Thread Previous
From:
Damian Conway
Date:
April 13, 2003 04:05
Subject:
Re: S6: Change in if syntax?
Message ID:
3E993643.6030607@conway.org
Brent Dax wrote:

> Paul:
> #   if ( $foo    {bar}     # using whitespace to line up subscripts
> #   or   $piddle {far} ) { # for visual reasons, but parens required
> #       boo();
> #   }
> 
> I would imagine (read: "hope") that the no-whitespace thing would be
> tiebreaking rule, i.e. "if you can't tell, assume it's a block".

Nope. It's a hard-and-fast part of the syntax. Absolutely no whitespace in 
variable accesses. Not under any circumstances. Never.

At least, not until you explicitly modify the grammar to allow it. ;-)

Damian


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About