DEV Community

Discussion on: Why Switch Statement is Bad

Collapse
 
eslamelkholy profile image
eslamelkholy

Yea Switch statement is cool but sometimes when new requirements comes up the code maintenance is going to be very hard by time so by adding new features as you mentioned new Enum for example you just need to add new class it's better than editing in the switch statement it self