DEV Community

loading...

Discussion on: If (all) else is complicated, switch to switch?

Collapse
technoglot profile image
Amelia Vieira Rosado

Do you think it's worth using?

Yeah, for sure. Though I don't use it often, I have found it useful in some scenarios (you know, when there's just too many things to check for?) Best example I can give was a Chinese Zodiac sign programming assignment I got at the uni. Doing that stuff with an if-else seemed like madness! 😂

Forem Open with the Forem app