DEV Community

loading...

Discussion on: If (all) else is complicated, switch to switch?

Collapse
haidarknightfury profile image
Haidar

Too many switches is bad design. You may want to switch to proper object oriented principles and this avoid so many ifs.

Forem Open with the Forem app