W
William Pursell
Lots of discussion lately on coding so that the debugger
stops on each line, and this is yet another. In that debate,
I fall in the camp of those who like code written such that
every statement is on a separate line (although I can't
stop using :?). I am curious to get opinions on the following
style:
instead of:
if( a && b )
foo();
use:
if( a )
if( b )
foo();
This style puts the conditionals on separate lines, so it
has that in its favor. But me thinks it has very few other
redeeming features and is a bit ugly.
Your thoughts?
stops on each line, and this is yet another. In that debate,
I fall in the camp of those who like code written such that
every statement is on a separate line (although I can't
stop using :?). I am curious to get opinions on the following
style:
instead of:
if( a && b )
foo();
use:
if( a )
if( b )
foo();
This style puts the conditionals on separate lines, so it
has that in its favor. But me thinks it has very few other
redeeming features and is a bit ugly.
Your thoughts?