You are viewing a single comment's thread from:

RE: How to write better code with Guard Clauses

in #technology5 years ago

I know a lot of programmers prefer the guard clause with a lot of returns, but I prefer structured ifs as in Example 1 and 2 but write a short comment after the closing if bracket, if the if statement gets very long.