Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
you dont use switch. period.
for I =0; ptr !=null; I ++(
where __fnarr is
static int __fnarr (args) =
[case 1] = dosomefunc ();
[casr n] = DOSONEFUNX ()
I hope u got the idea here. there is good article on so. search for how to replace switch with for.
Now I can imagine that for low level languages these choices matter, but should I, who is writing in a high level language, now refactor all my code?