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

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

Thread Previous | Thread Next
Markus Laire
July 3, 2006 07:32
Re: [svn:perl6-synopsis] r9733 - doc/trunk/design/syn
Message ID:
On 7/1/06, <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About