[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Ternary operator patch
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 16 Sep 2010 12:06:57 +0200
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.
- References:
- Re: Ternary operator patch, steve donovan
- Re: Ternary operator patch, Henk Boom
- Re: Ternary operator patch, steve donovan
- Re: Ternary operator patch, Geoff Leyland
- Re: Ternary operator patch, steve donovan
- Re: Ternary operator patch, Miles Bader
- Re: Ternary operator patch, David Kastrup
- Re: Ternary operator patch, Miles Bader
- Re: Ternary operator patch, David Kastrup
- Re: Ternary operator patch, Jonathan Castello
- Re: Ternary operator patch, Roberto Ierusalimschy
- Re: Ternary operator patch, Alexander Gladysh
- Re: Ternary operator patch, steve donovan
- Re: Ternary operator patch, Jeff Pohlmeyer
- Re: Ternary operator patch, David Kastrup
- Re: Ternary operator patch, Michal Kolodziejczyk
- Re: Ternary operator patch, Michal Kottman
- Re: Ternary operator patch, steve donovan
- Re: Ternary operator patch, Alexander Gladysh