29

Finding a bunch of "else if" instead of "switch"

Comments
  • 0
    What if you're "swotching" on the value of a char array
  • 0
    Or if you are switching on exact values, not truthy?
  • 0
    Or when you use switch statements in a CS class and get points off for "hidden controls", only to look around and see everyone else has at least 2 pages of "else if" statements...
Add Comment