Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

While I agree with making code editable in single lines as much as possible, I think this is a particularly bad example. I do prefer the comma first style for arrays and objects, but not for variable declarations. I used to use this exact style a couple years ago, but now I prefer to explicitly declare every variable with `var` to prevent any possible, syntactically correct, error that would result in a global variable.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: