lua-users home
lua-l archive

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


On Thu, Sep 16, 2010 at 11:57 AM, Alexander Gladysh <agladysh@gmail.com> wrote:
> If we're adding new syntax, then I'm for table append operator!
>
> (Can't find Luiz's post about it though :-( )

Here it is:

http://lua-users.org/lists/lua-l/2009-09/msg00330.html

I quote:

[[
in principle, you could
"merge" a table literal into an existing table very efficiently, if only we
could say it in the program. (If you're generating bytecode, then like I said
you don't need to do anything special.)

One possible syntax would be
	t<<{ ... }
but that requires a new token.

Other possibilities that do not require a new token are
	t#{ ... }
	t:{ ... }
]]

steve d.