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

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

Thread Previous | Thread Next
From:
Markus Laire
Date:
July 3, 2006 07:32
Subject:
Re: [svn:perl6-synopsis] r9733 - doc/trunk/design/syn
Message ID:
67d53e40607030731m76b8fa3cq1912a31200450b92@mail.gmail.com
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?

-- 
Markus Laire

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