for all the programmers out there, if your if statement contains a return/break, do you bother typing else?

· · Web · 2 · 0 · 0

@joegrimer I don't generally. I suppose it depends on whether the behavior is closely correlated with the if statement's behavior, and if you are likely to refactor to not use make the return/break statement.

@joegrimer I would say it depends on how it affects readability, usually I find leaving it off makes the code look cleaner in my opinion.

Sign in to participate in the conversation — a friendly social networking space for those with an interest in Catholicism.