[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: special forms, take two (was Re: A lua version of "amb")
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 28 Feb 2012 08:13:04 +0200
> This is one of those cases where function declaration syntax inside a
> table would work for some kinds of use too:
>
> switch(c, {
> function p() print(a) end;
> function q() os.exit() end;
> function e() eval(args) end;
> })
>
> but that's dependent on the cases being suitable as table keys.
I.e. the cases must not be nil of NaN?