I still don't buy it. One of the reasons I don't is because comma- first makes the comma's a part of the indentation. The comma's are emphasized more. This means if you forget a comma, it will be immediately noticeable because the indentation will look awkward. Comma-last is just that: the last character.
I don't think jslint enforces it because it's better, it enforces it because it's more popular (in reality, it just enforces it because crockford says so). I probably don't use it for error prevention though. I use it because it is more aesthetically pleasing to my eye. On Feb 24, 4:17 pm, Dave Clements <[email protected]> wrote: > Gentlemen I think we're confusing style and recommended practice. The > reason JSLint enforces comma last is because it's the best case > scenario for human error prevention. Comma first looks better, but > that doesn't mean it IS better. -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
