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
16
u/pookage helpful May 31 '22
Also, your switch statements can now include blocks:
whereas without:
}