On 1/7/14 2:29 PM, Mike Hoye wrote:
- Indent with 4 spaces,

Mike, do you have the background on why 4 is preferred to 2? The things you cite don't seem to differentiate between these two options...

One reason I've seen 2 preferred to 4 (apart from keeping line lengths down) is that:

  if (somethingHere() &&
      somethingElse())
      doSomething();

is less clear about what's condition and what's body the if body is than:

  if (somethingHere() &&
      somethingElse())
    doSomething();

but this would obviously also be affected by the bracing policy.

-Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to