RE: How to write better code with Guard Clauses
You are viewing a single comment's thread:
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.
0
0
0.000
0 comments