DEV Community

loading...

Discussion on: A Case Against Switches

darkain profile image
Vincent Milum Jr

It isn't language specific, it is implemention specific. I know some C/C++ compilers have this issue, but not all.

Thread Thread
codevault profile image
Sergiu Mureşan

For embedded I can see that limitation and that switch could look much more readable since you're mostly working with numbers (integers, addresses etc.) instead of more complex structures (objects, strings etc.)