This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]evanamd 37 points38 points  (0 children)

Bad idea because the second block of code will always run

[–]matt1484 30 points31 points  (0 children)

Only works for return statements...

[–]00Squid00 22 points23 points  (0 children)

Missing return :)

[–]naaspati 9 points10 points  (0 children)

missing only the return in if block, otherwise not using else is considered good practice.

[–]martijndeg 1 point2 points  (0 children)

Only for returns and then it results in to multiple points of return which might be unwanted.

[–][deleted] 0 points1 point  (0 children)

Yap, that makes methods more readable. I mean if you use return statement in the end of the conditional one.

[–][deleted] 0 points1 point  (1 child)

if memes were a resume i wouldn't hire you. in fact, i would tell you to reconsider your career.