Re:Ifs and &&s and Plan 9's Source Code
by jlgreco on Friday May 24, 2013 @04:28PM
(#5765037)
This also makes individual conditions slightly easier to comment out.
[ Parent
| on HN ]
And yank/cut/copy, and re-order, and type-over, and... I have developed similar habits after using line-based editors. This is very easy code to modify. (Notice the return type on a line all its own.)
Exactly. You could easily consider this to be defensive code in a similar way as always using 'break' with the last case of a switch-case is defensive.