[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: New long comments in 5.1
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 18 Jun 2004 15:32:50 -0300
> 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.