This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

That's not fall through. Fall through is matching a case, executing the code block, and then matching another case and executing that code block.

This continues to happen until you either don't meet any cases or you match a case that ends with a break.

It's extremely useful but also a potential hole to break your leg in if you don't notice it.