Reputation
Next privilege 125 Rep.
Vote down
Badges
0 0 0
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Aug
28
comment Why do we have to use break in switch?
Your example looks more verbose than an if without any benefit. Perhaps if your example assigned a name or did month-specific work in addition to the fall-through, the utility of fall-through would be more apparent? (without commenting on whether one SHOULD in the first place)