lua-users home
lua-l archive

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


On Fri, Jan 8, 2010 at 23:49, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
> Lua 5.2.0 (work1) is now available at
>        http://www.lua.org/work/lua-5.2.0-work1.tar.gz

> All feedback welcome. Thanks.

One more pet feature I don't see in 5.2, while I've heard that it is
"easy to do":

What about syntax to append a table to a table? I vaguely remember
that it is fits nicely in the bytecode.

I tend to write such code a lot:

    t = { <some data> }

    -- <some code>

    t[#t + 1] = foo
    t[#t + 1] = bar
    t[#t + 1] = baz
    t[#t + 1] = que

And such syntax would really help the readability.

Alexander.