On 07/01/14 22:26, Jeff Walden wrote:
> which was unreadable.  You simply can't easily skim and see where the body 
> starts and where the condition ends, even with braces.  We shoved the opening 
> brace to its own line:
> 
> if (somethingHere() &&
>     somethingElse())
> {
>     doSomething();
> }

AIUI, many style guides which ask for the brace to be on the end of the
"if" have an exception for multi-line conditionals, exactly as you state.

Gerv


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

Reply via email to