DEV Community

Discussion on: I've never become overly convinced that switch statements are that much cleaner than `if else if else if else if else`

Collapse
 
juancarlospaco profile image
Juan Carlos

They are different, switch (or case) is a Multi-Branch flow.
Compiled languages can optimize switch a lot more than if.