develooper Front page | perl.perl6.language | Postings from May 2007

Re: explicit line termination with ";": why?

Thread Previous | Thread Next
From:
Thomas Wittek
Date:
May 14, 2007 16:23
Subject:
Re: explicit line termination with ";": why?
Message ID:
20070514232253.31247.qmail@lists.develooper.com
Andrew Shitov:
> If the line of code is not ended with ';' the parser tries first
> to assume [..]

Wouldn't that be unambigous?

 foo = 23
 bar = \
       42

?

I think there would be no ambiguities and you only had to add additional
syntax for the rare cases instead of the common cases.

-- 
Thomas Wittek
http://gedankenkonstrukt.de/
Jabber: streawkceur@jabber.i-pobox.net

Thread Previous | Thread Next


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