[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [propsal] improve to table.concat?
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 11 Oct 2011 14:47:10 +0200
2011/10/11 Patrick Rapin <email@example.com>:
> On my opinion, a serious table serialization routine like my
> DataDumper  should be present in every Lua environment, because
> it is so common and useful to print tables in a readable way.
Tables are everything in Lua, and there is no one best way that suits
Your DataDumper is useful because it is supplied as Lua code and can
easily be modified. I like doing the final table.concat in the calling
program, I don't want 'return', I don't want the exact name DataDumper
to go directly into the global namespace, I don't want tables dumped
recursively to any depth — but that's fine, I can change my personal
copy of DataDumper.
So I say, yes, a serious table serialization routine like DataDumper
should be present in every Lua environment, but no, it should not be
provided in a prebuilt library. It's good enough to be able to
download it from LuaWiki.