3 ms·
People already use return if the switch is the last statement in a function, so, all this "sugar" is only confusing, inconsistent, and not improving the readabi
by nikolay 9y ago
People already use return if the switch is the last statement in a function, so, all this "sugar" is only confusing, inconsistent, and not improving the readability or the learning curve.
- merb 9y agowell I think the sugar is fine. just the none sugar is kinda.. wierd. who would ever write: 'case "foo": break 1' it's just unnecessary. (but they probably do it for backwards compat or so, no idea..)