re: Why switch is better than if-else VIEW POST

FULL DISCUSSION
 

I got rid of all "else" in my programs. They are shorter, faster and clearer now. I used a switch, ternary, or return by context.

code of conduct - report abuse