lua-users home
lua-l archive

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


	Hi

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,
		Tomás