DEV Community

loading...

Discussion on: Clean up your code by applying these 7 rules ⚡️

Collapse
joachimzeelmaekers profile image
Joachim Zeelmaekers Author

In this case this would be a good solution, but it gets really big when you have to check 10 options for example! The switch statement is also not available in Python for example.