9point6, 4 months ago Hmm, I think the condition gets newlined and you K&R on the closing parenthesis IMO: <span style="color:#323232;">while ( </span><span style="color:#323232;"> isSomething </span><span style="color:#323232;"> && isSomethingElse </span><span style="color:#323232;"> && nFoo < 10 </span><span style="color:#323232;">) { </span><span style="color:#323232;"> blah(); </span><span style="color:#323232;"> blah(); </span><span style="color:#323232;">} </span> You could also keep isSomething on the first line too, but I think it’s nice to keep the whole multiline condition at the same indent width
Hmm, I think the condition gets newlined and you K&R on the closing parenthesis IMO:
<span style="color:#323232;">while ( </span><span style="color:#323232;"> isSomething </span><span style="color:#323232;"> && isSomethingElse </span><span style="color:#323232;"> && nFoo < 10 </span><span style="color:#323232;">) { </span><span style="color:#323232;"> blah(); </span><span style="color:#323232;"> blah(); </span><span style="color:#323232;">} </span>
You could also keep isSomething on the first line too, but I think it’s nice to keep the whole multiline condition at the same indent width
isSomething