On Wednesday 04 February 2009, Daniel-Constantin Mierla wrote:
- it can shorten the script and save some ifs:
switch(a) { case v1: something; case v2: something else; break; }
Hi all,
this is also a big advantage for me, as if your script gets too long its much harder to debug and understand.
It could be a sswitch (although I would prefer single name to avoid confusions) if breaks logic for integer optimizations.
Having two different switch statements is IMHO really confusing.
Cheers,
Henning