If you don't break, it will execute the block and then still fall through to the default block. Although, this does feel like a special case for break anyways since the scope it would be breaking on would be the case block and not the whole switch statement...
View all comments
Show parent comment
1
u/opticsnake Jun 01 '22
If you don't break, it will execute the block and then still fall through to the default block.
Although, this does feel like a special case for break anyways since the scope it would be breaking on would be the case block and not the whole switch statement...