Fallthrough exists so switch can make sparse jump tables just as easily as it makes fully-populated jump tables. It's insanely useful in a few very specific scenarios, and insanely useless in almost every other scenario.
Ideally, it should've been opt-in instead of opt-out, but it's probably much too late to change it now.
View all comments
Show parent comment
2
u/conundorum Sep 06 '26
Fallthrough exists so
switchcan make sparse jump tables just as easily as it makes fully-populated jump tables. It's insanely useful in a few very specific scenarios, and insanely useless in almost every other scenario.Ideally, it should've been opt-in instead of opt-out, but it's probably much too late to change it now.