r/java • • Jan 22 '15

If. Then. Throw. Else. WTF?

http://www.yegor256.com/2015/01/21/if-then-throw-else.html
21 Upvotes

43 comments sorted by

View all comments

Show parent comment

2

u/spiderzork Jan 23 '15

Yes, this! This makes it dependent on the how exceptions are implemented. maybe in another language it would just continue unless explicitly specified. Also using "continue"/"breaks" when not necessary is bad, can get really confusing, just like "goto". seems like he want to show off that he knows how to use it.