[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: New long comments in 5.1
- From: "Michael Newberry" <mnewberry@...>
- Date: Fri, 18 Jun 2004 11:43:00 -0700
Sounds like you evolved your way into a box with regard to having any
remaining simple syntaxes.
----- Original Message -----
From: "Roberto Ierusalimschy" <firstname.lastname@example.org>
To: "Lua list" <email@example.com>
Sent: Friday, June 18, 2004 11:32 AM
Subject: Re: New long comments in 5.1
> > It seems you are counting on that fact that "a[b[*]]" is less likely
> > to appear in a comment or string than "a[b[x]]".
> Not at all. The probem is that "a[b[x]] = 3" is already a valid Lua
> command! With the new syntax, how would the parser distinguish between
> that and "a [b[ ... ]b]" ??
> > Anyway, if it must be a single character, I vote for '-' over '*'.
> Again we have an ambiguity. The sequence "a[--[" already has a clear
> meaning in Lua.
> -- Roberto