DEV Community

Discussion on: Why switch is better than if-else

Collapse
 
mortoray profile image
edA‑qa mort‑ora‑y

In C/C++ they have fall-through, but more modern implementations don't have that. I believe you can even enable warnings in some C++ compilers to disallow fall-through.