moosetwin to [email protected]English • edit-210 months agoAntimemes rulelemmy.dbzer0.comimagemessage-square33fedilinkarrow-up1215arrow-down18cross-posted to: antimeme
arrow-up1207arrow-down1imageAntimemes rulelemmy.dbzer0.commoosetwin to [email protected]English • edit-210 months agomessage-square33fedilinkcross-posted to: antimeme
minus-square@9point6link54•10 months agoHmm, 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
isSomething
on the first line too, but I think it’s nice to keep the whole multiline condition at the same indent widthThis is the way.