DEV Community

Discussion on: Keeping your code clean by sweeping out "if" statements

Collapse
 
laughingraven profile image
Laughing Raven

Bold statements, but dubious at best. Don't be clever. Use the if statement. Think about all the overhead you introduce and how much more difficult your code is to debug.