[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5 Grammar update
- From: Mike Pall <mikelu-0507@...>
- Date: Sat, 30 Jul 2005 11:59:42 +0200
Hi,
Philippe Lhoste wrote:
> ##
> The LUA_COMPAT_LSTR=2 is only for compatibility, so it allows nesting
> only for the simple case [[...]] (without equal signs).
> ##
>
> I think, unless you are doing a project from scratch and disconnected
> from the rest of the world, that Lua should be compiled with this
> option, which probably doesn't harm anything.
I beg to differ. The new (5.1) behaviour is a lot simpler to
understand and to implement. IMHO the Lua authors' decision
is right and the old behaviour should go.
Just deprecating it in the docs and silently leaving it in,
means it never goes away. We've seen that with 'for x in table',
which was deprecated in the 5.0 docs. But the complaints
started just recently when one of the 5.1-work versions
finally dropped it (i.e. a few years later).
> At least, a Lua lexer/parser should still handle this kind of nesting,
> to handle legacy code.
This is a completely different issue. Tools striving to
support multiple Lua versions should probably have a
'compatibility version' setting.
Bye,
Mike