--

That switch statement is appallingly bad! Only a very bad programmer could possibly come up with that ;)

As a general rule, if a switch statement has more than, say, four or five cases, it should probably be replaced by something formulaic.

--

--

Robin Hillyard
Robin Hillyard

Written by Robin Hillyard

I’ve been addicted to programming for over 50 years now. I currently teach two classes to graduates at Northeastern University, Boston, USA.

No responses yet