You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
Change style guide for conditional operators #1221
Based on discussions with the team and this public thread, we've decided to change the style guideline for conditional operators. Unlike other binary operators which stay on the previous line when a line break occurs near the operator, conditionals will go to the beginning of the next line, followed by a space.
I'll be changing the formatter to do this shortly.
Concretely, I think it means changing the style guide from:
DO place the operator on the preceding line in a multi-line expression.
To:
DO place binary operators on the preceding line in a multi-line expression.
And adding:
Do place ternary operators on the next line in a multi-line expression.
Also, if you break the line before one of the operators, prefer breaking around both.
Activity
kwalrath commentedon Feb 25, 2015
https://chromiumcodereview.appspot.com/959553002
Update the Style Guide
kwalrath commentedon Mar 19, 2015
Fixed: https://www.dartlang.org/articles/style-guide/#do-place-binary-operators-on-the-preceding-line-in-a-multi-line-expression