Menu
Sign In Pricing Add Podcast

The Changelog: Software Development, Open Source

Fallthrough & Friends (Friends)

4004.862 - 4023.087 Kris Brandow

And what fall through allows you to do is go into the next switch statement, which is the default behavior in languages like C, which is why you have to put a break at the end of every case statement to make sure you don't go into the next one. So fall through allows you to have that old style functionality of going into the next case statement of your switch statement.

0
💬 0

Comments

There are no comments yet.

Log in to comment.