[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Request for 5.4: adding [] as table creation syntax for Lua 6.0
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 13 Jul 2016 13:55:26 +0200
On Wed, Jul 13, 2016 at 1:41 PM, Egor Skriptunoff
<egor.skriptunoff@gmail.com> wrote:
> The solution is simple: use space to separate lexems.
> We already have similar "features" in Lua:
> x = t[ [=[a]=]] -- x = t.a
> y = t[[=[a]=]] -- y = t("=[a]=")
That's really ugly ;) Nah, I like them braces. Can always define a
simple function 'A' or 'T' that applies correct metatable.
If it's a built-in type - well, that's a move away from the simplicity
which remains an attractive part of Lua