4 ms·
I prefer the operators at the start because the start is less jagged, so the operators don't get spread out so much and stand out more. Usually I only put them
by Strilanc 12y ago
I prefer the operators at the start because the start is less jagged, so the operators don't get spread out so much and stand out more.
Usually I only put them at the end of a line in languages that do implicit line endings, and will false-positive when you move the operator to the next line (i.e. javascript and visual basic).
- ufo 12y agoJavascripr lets you put the binary operators in the next line if you want. It won't insert a semicolon there: http://blog.izs.me/post/2353458699/an-open-letter-to-javascript-leaders-regarding http://blog.izs.me/post/2353458699/an-open-letter-to-javascr... I would say that the most common problem is having a semicolon not being inserted if you start a line with `(` or `[`. In practice, the only time when a semicolon gets inserted where it shouldn't is when returning an object literal.
- euank 12y agoJshint still complains about it even though it's technically okay.