moosetwin to [email protected]English • edit-21 year agoAntimemes rulelemmy.dbzer0.comimagemessage-square35fedilinkarrow-up1213
arrow-up1213imageAntimemes rulelemmy.dbzer0.commoosetwin to [email protected]English • edit-21 year agomessage-square35fedilink
minus-square@[email protected]linkfedilink28•edit-21 year agoAllman if the condition is very long while(isSomething && isSomethingElse && nFoo < 10) { bla(); bla(); } vs while(isSomething && isSomethingElse && nFoo < 10) { bla(); bla(); }
minus-square@[email protected]linkfedilink48•1 year 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
Allman if the condition is very long
vs
Hmm, I think the condition gets newlined and you K&R on the closing parenthesis IMO:
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.
deleted by creator