3 ms·
If (x) throw y; If (s) throw t; Throw default;
by jbverschoor 6y ago
If (x) throw y;
If (s) throw t;
Throw default;
- encoderer 6y agoNope. Not the same. That is a switch with a break.
- jbverschoor 6y agoThe example in the post uses return and throw. Break doesn't matter in that case
- encoderer 6y agoI am not the author of the post. My comment specifically mentions fall thru.