moosetwin@lemmy.dbzer0.com to 196@lemmy.blahaj.zoneEnglish · 3 年前Antimemes rulelemmy.dbzer0.comimagemessage-square35linkfedilinkarrow-up1219arrow-down10
arrow-up1219arrow-down1imageAntimemes rulelemmy.dbzer0.commoosetwin@lemmy.dbzer0.com to 196@lemmy.blahaj.zoneEnglish · 3 年前message-square35linkfedilink
minus-square9point6@lemmy.worldlinkfedilinkarrow-up53·3 年前Hmm, I think the condition gets newlined and you K&R on the closing parenthesis IMO: while ( isSomething && isSomethingElse && nFoo < 10 ) { blah(); blah(); } 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:
while ( isSomething && isSomethingElse && nFoo < 10 ) { blah(); blah(); }You could also keep
isSomethingon the first line too, but I think it’s nice to keep the whole multiline condition at the same indent widthThis is the way.