Having just recently (i.e today) tried to replace a bunch of simple
if statements with a
switch and failing miserably I wouldn't recommend it's use in production code. The code was straightforward and the module relatively innocent but the resulting filtered code produced parse errors in code that wasn't even near the
switch statement :-/
HTH
_________
broquaint