[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Upstream is not the last word (was Re: [ANN] Lua 5.1.5 (rc1) now available)
- From: KR <krunal.rao78@...>
- Date: Tue, 14 Feb 2012 15:44:09 +0000 (UTC)
Pierre Chapuis <catwell <at> archlinux.us> writes:
> ...it is impossible to design a library that implements a pack(example)
> function that converts a structure such as `example` to JSON
> efficiently:
>
> example = {
> a = {1,2,3},
> b = {a = 1, b = 2, c = {1,2}},
> }
>
I am confused, you can indeed add "markers" (via weak tables if you prefer a not
invasive approach) allowing a syntax like:
example = M{
a = A{1,2,3},
b = M{a = 1, b = 2, c = A{1,2}},
}
Would this be fine?
KR
- References:
- Upstream is not the last word (was Re: [ANN] Lua 5.1.5 (rc1) now available), Jay Carlson
- Re: Upstream is not the last word (was Re: [ANN] Lua 5.1.5 (rc1) now available), Dirk Laurie
- Re: Upstream is not the last word (was Re: [ANN] Lua 5.1.5 (rc1) now available), Jon Akhtar
- Re: Upstream is not the last word (was Re: [ANN] Lua 5.1.5 (rc1) now available), Alex Queiroz
- Re: Upstream is not the last word (was Re: [ANN] Lua 5.1.5 (rc1) now available), KHMan
- Re: Upstream is not the last word (was Re: [ANN] Lua 5.1.5 (rc1) now available), Jay Carlson
- Re: Upstream is not the last word (was Re: [ANN] Lua 5.1.5 (rc1) now available), Axel Kittenberger
- Re: Upstream is not the last word (was Re: [ANN] Lua 5.1.5 (rc1) now available), Ross Bencina
- Re: Upstream is not the last word (was Re: [ANN] Lua 5.1.5 (rc1) now available), Sean Conner
- Re: Upstream is not the last word (was Re: [ANN] Lua 5.1.5 (rc1) now available), Ross Bencina
- Re: Upstream is not the last word (was Re: [ANN] Lua 5.1.5 (rc1) now available), Josh Simmons
- Re: Upstream is not the last word (was Re: [ANN] Lua 5.1.5 (rc1) now available), Ross Bencina
- Re: Upstream is not the last word (was Re: [ANN] Lua 5.1.5 (rc1) now available), Pierre Chapuis