lua-users home
lua-l archive

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


> 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