[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lightweight function syntax (again) Re: [ANN] Lua 5.2.0 (alpha-rc2) now available
- From: Antonio Vieiro <antonio@...>
- Date: Wed, 24 Nov 2010 10:53:26 +0100
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.
>
>