Re: function system() from stdlib.h
CBFalconer <cbfalconer@yah oo.comwrote:
That's a good one; another I like is putting the semi-colon on a line of
its own. That's unusual enough to be clear. Like this:
while (side_effects--)
;
Richard
CBFalconer <cbfalconer@yah oo.comwrote:
Chris Dollin wrote:
>
Try:
>
while (side_effects) continue;
santosh wrote:
Readability. I find `;` to be more missable (and more likely to
be an accident) than {}. One's parsecage may vary.
Is there a specific reason for doing while( ... ) {} instead of
while( ... ); other than readability? I consider the latter form
to be more readable, but I may be in the minority regarding that.
while( ... ); other than readability? I consider the latter form
to be more readable, but I may be in the minority regarding that.
be an accident) than {}. One's parsecage may vary.
Try:
>
while (side_effects) continue;
its own. That's unusual enough to be clear. Like this:
while (side_effects--)
;
Richard
Comment