develooper Front page | perl.perl6.language | Postings from July 2006

Re: [svn:perl6-synopsis] r9733 - doc/trunk/design/syn

Thread Previous
From:
Larry Wall
Date:
July 3, 2006 08:49
Subject:
Re: [svn:perl6-synopsis] r9733 - doc/trunk/design/syn
Message ID:
20060703154920.GA22970@wall.org
On Mon, Jul 03, 2006 at 05:31:34PM +0300, Markus Laire wrote:
: On 7/1/06, larry@cvs.perl.org <larry@cvs.perl.org> wrote:
: >+But parens are special that way.  (Even C<q()> is assumed to be a
: >+function call rather than a quote.)  Other bracketing characters are
: >+special only if they can be mistaken for adverbial arguments, so
: >
: >     qn[stuff]
: >
: >-is fine, while
: >+is fine, and means
: >+
: >+    q:n /stuff/
: >+
: >+while
: 
: Since quotes can have whitespace before the first/opening delimiter,
: but functions can't (according to S03), how is C<q ()> parsed? (Notice
: the space before parens).
: 
: Would that be parsed as invalid function-call (i.e. syntax error) or
: valid quote?

It's a valid quote.

Larry

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