Oh man, I love when I do a little further research and find out that the thing I'm talking about has a huge debate associated with it.
en.wikipedia.org/wiki/Fallthrough_...
en.wikipedia.org/wiki/Duff%27s_device
So it may be the case that your suggested syntax adds extra reinforcement for fall-through to be avoided as an intentional design practice.
You beat me to my own argument 😉
That said, I myself have also used fall-through statements on rare occasions.
That that said (is that a thing?), scoping each case using {} doesn't prevent you from falling through case statements anyways.
{}
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Oh man, I love when I do a little further research and find out that the thing I'm talking about has a huge debate associated with it.
en.wikipedia.org/wiki/Fallthrough_...
en.wikipedia.org/wiki/Duff%27s_device
So it may be the case that your suggested syntax adds extra reinforcement for fall-through to be avoided as an intentional design practice.
You beat me to my own argument 😉
That said, I myself have also used fall-through statements on rare occasions.
That that said (is that a thing?), scoping each case using
{}
doesn't prevent you from falling through case statements anyways.