Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 3
    If every language you know allows this, you need to learn languages other than C and its imitators. Fallthrough in case statements are a historical design accident in C that somehow survived in more principled languages. Commented May 10, 2013 at 23:27
  • 2
    @GillesSO-stopbeingevil Not true. Fallthrough is a useful feature, and its harmfulness is just a widespread myth. Many programmers complain about implicit fallthrough, saying it's a tragedy that a non-fallthroughing case requires an explicit break; ridiculous. Moreover, the very few reasons that I did see, because "it's easy to forget the break" is plain wrong, and because "I don't like it" is irrational. Commented Nov 20, 2020 at 6:39