3 ms·
I follow the opposite rule. If any branch of a compounded `if/else` is braced, then so shall all of the others.
by kazinator 8y ago
I follow the opposite rule. If any branch of a compounded `if/else` is braced, then so shall all of the others.
- jlg23 8y agoA little further down in the document linked: "This does not apply if only one branch of a conditional statement is a single statement; in the latter case use braces in both branches:"