[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
- From: Tomas Guisasola Gorham <tomas@...>
- Date: Fri, 13 Jun 2014 16:50:07 -0300 (BRT)
On Fri, 13 Jun 2014, Paige DePol wrote:
Tomás, please see earlier posts on this thread that discuss the differences between switch statements and function-table constructs so the conversation doesn't go in circles!
Also no, I do not use that type of construct, I much prefer the cleaner style of the switch statement and the extra functionality it can provide... which is why I created the switch patch! ;)
Sorry about the noise. I should have written the "constants"
between parentheses, as Adam pointed out in his message.
Anyway, what I was trying to say is that when the if-elseif
chain becomes a little longer, this construction seems much better.
For me at least. I don't even think about a switch statement...
Regards and sorry about the noise,