rwldrn/idiomatic.js — Issue #14: Opinionated attack on comma-first
Author: Raynos
Created: 2011-12-02 17:08:26+00:00
State: open

There is an off hand comment about comma first being bad at the bottom.

It likes to a es-discuss thread with this code

var middleware = [ context,
, csrf
, xsite
, head
, considtional
, error
];

which is just an example of bad code. It clearly should be

var middleware = [ context
,
, csrf
, xsite
, head
, considtional
, error
];

Yes you can write code where it's not easy to spot a mistake with comma-first but you can do the same with comma last.

var middleware = [ context,
csrf,
xsite
head,
considtional,
error ];

I personally think this comment is just noise and should be removed.