Hacker News new | past | comments | ask | show | jobs | submit login

Guys, more background from 'Fat' on why he doesn't use semicolons written back in October 31st 2011: http://wordsbyf.at/2011/10/31/i-dont-write-javascript/

Quotes: On the use of '&&' instead of an 'if' statement: "If you were really having fun with it you could lose the if all together... Each is perfectly valid. Each behaves the same. It’s just a matter of preference and finding the style that makes most sense to you." JSLint is described as a "unnecessarily strict linter". "The majority of lines however don’t end with semicolons because they simply aren’t necessary and I prefer the minimalist aesthetic. For me, \n character is enough and the semicolon character is redundant."

... IMHO: Don't be a JavaScript hipster. Add semi-colons.




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

Search: