Reputation
Next privilege 125 Rep.
Vote down
Badges
2
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 7 votes cast
Aug
24
awarded  Autobiographer
Jul
19
comment Best practice on if/return
Your two cases are only equivalent if do something includes a return. If not, the second code will execute do somethingelse regardless of the if predicate which is not how the first block works.
Jul
10
awarded  Supporter