[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: syntax
- From: "Javier Guerra" <javier@...>
- Date: Wed, 20 Feb 2008 09:34:17 -0500
On 2/20/08, Hans Hagen <pragma@wxs.nl> wrote:
> but since the reference states that
>
> a.name as syntactic sugar for a["name"]
>
> i'd expect the parser to recognize such cases; isn't this tricky with
> repect to future extensions (read: new keywords) being used in scripts
> as keys already?
the reference also states that "keywords are reserved and cannot be
used as names". that's why the Lua designers are so reluctant to
introduce new keywords.
--
Javier