PERFORCE change 126033 for review

M. Warner Losh imp at bsdimp.com
Tue Sep 4 22:17:36 PDT 2007


In message: <200709041121.45990.hselasky at c2i.net>
            Hans Petter Selasky <hselasky at c2i.net> writes:
: Hi,
: 
: In my opinion you should keep braces around single line if's .
: 
: if (xxx) {
:    yyy;
: }
: 
: This will reduce the chance of error next time you add a statement to an if.

Sadly, or joyfully depending on your viewpoint, style(9) says you must
remove them.  Since we follow style(9) in this project it is better to
be uniform than to get the tiny bit of safety adding them gives.

Warner


More information about the p4-projects mailing list