lua-users home
lua-l archive

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


Ah, so this is for "data description".

Well, I assume the easiest thing to do is to use Scheme for these sort
of things. It's compact, readable, data-is-code-is-data, easy to parse
and self describing.

Cheers,
Antonio

2010/11/23 steve donovan <steve.j.donovan@gmail.com>:
> On Mon, Nov 22, 2010 at 10:26 PM, Antonio Vieiro
> <antonio@antonioshome.net> wrote:
>> In fact I'd prefer using parenthesis even for single arguments, so I'd
>> rather write print("Hello") instead of print "Hello". It's easier to
>> parse as well.
>
> Ah, but you can always do that in your own code.  This bit of sugar is
> _very_ useful when Lua is operating in data-description mode, the same
> for fun {...}
>
> steve d.
>
>