[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The meaning of 'sugar' [Forked from Re: Why do we have ipairs?]
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 13 Jun 2014 10:49:28 -0300
> Granted, your point about not having symbolic constants degrading the quality of code is true... however, this problem already exists for if-else statements as well [...]
Is the "perfomance degradation" of using names (variables) instead of
constants in an if-chain similar to what it does in your switch statement?
(You may try it with different kinds of variables.)
-- Roberto