Hacker News new | ask | show | jobs
by tom_ 1021 days ago
> "...And the lord said, 'lo, there shall only be case or default labels inside a switch statement'"

Did it seriously not let you have a goto label inside a switch?! This seems like an odd restriction, as all 3 are the same kind of thing.

1 comments

They're different enough that you can't goto a case or default label.
From that perspective, indeed, very true - but then that's exactly why you need to be able to have goto labels inside a switch!