Feb 3, 2023
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.