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.
You are viewing a single comment's thread from: