in reply to bloated 'if' formatting
I typically use the first if it's short and fits on one line. I choose between the latter two depending on the phase of the moon, or the number of times my cat purrs.if (condition && condition && condition) { ... } if (condition && condition && condition) { ... } if (condition && condition && condition) { ... }
Sometimes, I write:
if (condition && condition && and_a_very_long_condition) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: bloated 'if' formatting
by Hue-Bond (Priest) on Oct 06, 2005 at 18:21 UTC |