[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Can someone sell Lua 5.2.0 to me please ?
- From: Alexander Gladysh <agladysh@...>
- Date: Wed, 21 Dec 2011 18:42:10 +0400
On Wed, Dec 21, 2011 at 18:25, Joshua Jensen <firstname.lastname@example.org> wrote:
> ----- Original Message -----
> From: Philippe Lhoste
> Date: 12/21/2011 6:19 AM
>> On 17/12/2011 13:47, Jeff Smith wrote:
>>> 6) I dont like long if else blocks, so a select case construct would have
>>> been nice IMHO.
>> This is usually done with a table of functions, no? A bit verbose, but
>> quite usable.
> And MUCH slower.
Only about 15 times slower (with vanilla Lua), AFAIR, but much more readable.
In rare cases where that 15 times matter, you always can rewrite to
whatever is more efficient .