9point6,

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;">    &amp;&amp; isSomethingElse
</span><span style="color:#323232;">    &amp;&amp; nFoo &lt; 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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • 196@lemmy.blahaj.zone
  • fightinggames
  • All magazines