lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Mar 14, 2016 at 12:57 AM, Xpol Wan <xpolife@gmail.com> wrote:
> Is it possiable in future Lua version to allow table.keyword like
> `promise:then()` .

Unless I'm missing something, this wouldn't result in any ambiguous
syntax. An identifier, followed by a . or :, followed by a keyword, is
never valid syntax under current rules, so treating the keyword in
that sequence of tokens as an identifier shouldn't cause problems.

So I'm +1 on this. It would be nice to have the ability to do things
like _G.end (or _ENV.end). Again, unless I'm missing something (which
I very well might be given that I'm currently recovering from a cold
that's screwing with my thinking a bit).