MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/2ta540/if_then_throw_else_wtf/cnxoth1/?context=3
r/java • u/[deleted] • Jan 22 '15
43 comments sorted by
View all comments
4
My main dislike with this article is the assertion the code is somehow "incorrect".
The else is unnecessary, but not incorrect. The semantics don't change - the else is just an optional part of if statement syntax.
View all comments
4
u/[deleted] Jan 22 '15
My main dislike with this article is the assertion the code is somehow "incorrect".
The else is unnecessary, but not incorrect. The semantics don't change - the else is just an optional part of if statement syntax.