On Fri, Feb 17, 2017 at 1:28 AM, <gsquel...@mozilla.com> wrote: > While it's good to know how many people are for or against it, so that we get > a sense of where the majority swings, I'd really like to know *why* people > have their position. (I could learn something!)
I prefer having the operator at the beginning of the line (i.e. what you're proposing). I'll try to explain my reasoning. I view code's innate structure as being a tree, and the thing we edit as just a serialization of that tree into a sequence of characters for convenient editing and storage. In this conceptual tree, I view a binary operator expression such as "a && b" as having the following structure: && ├── a └── b That is, the operator is the root of the subtree, and the operands are the leaves. For me, the most salient piece of information in the subtree is "what type of subtree is this?" - that is, the operator. Having the operator at the beginning of the line, and especially that combined with indenting both operands further than the operator, puts this most salient information front and centre. By contrast, having it at the end of the line means your eyes need to travel over and parse the entire first operand to find it. Hopefully that made sense :) Cheers, Botond _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform