lua-users home
lua-l archive

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


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