News for hackers. Stuff that matters.
Re:Ifs and &&s and Plan 9's Source Code by vy8vWJlco on Friday May 24, 2013 @05:42PM (#5765332)
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.)
Re:Ifs and &&s and Plan 9's Source Code by jlgreco on Friday May 24, 2013 @05:59PM (#5765406)
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.