lua-users home
lua-l archive

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


On Wed, Apr 6, 2011 at 20:27, Ed <spied@yandex.ru> wrote:
> On 04/05/11 03:41, Alexander Gladysh wrote:

>> Of course table-as-key is generally useful — to represent sets and
>> maps where key is some object.

>> But, that being said, I'm not sure if it is really practical in
>> luatexts datagrams,

> Now: why luatexts format is better than JSON?

> JSON is much more readable, it is widely supported already.

As I admit in README, luatexts format is human-readable, but not very much so.

If you are happy with JSON and can use it, you should stick with it,
it is quite nice.

I suspect that luatexts parsing would be a bit faster than JSON (but
still have to benchmark it, I may be wrong). Also luatexts can do
table table-keys and tuples, which may be useful in certain situations
(like RPC calls to Lua code).

These are rather weak arguments, so, consider luatexts to be an experiment. :-)

Alexander.