News for hackers. Stuff that matters.
Re:Ask HN: Why use semicolons to terminate statements in mod... by inimino on Monday November 24, 2008 @09:30AM (#374833)
"1. Minification -- If you want to minify your JS, you might run into problems if you don't insert all necessary semicolons."

Only if the minifier is broken. Some of them are (I don't want to name names since it's been a while since I checked). The relevant advice would be "don't use broken minifiers," not "don't use automatic semicolon insertion."

"2. Convention -- If you wrote js code with no semicolons and then showed it to other JS programmers, you'll get a funny look, a slap in the face, or a free copy of "Javascript for Dummies", depending on the context."

The correct response to which is to politely refer them to ECMA-262 section 7.9 and go on your way.

Re:Ask HN: Why use semicolons to terminate statements in mod... by timknauf on Monday November 24, 2008 @09:52AM (#374868)
The correct response to which is to politely refer them to ECMA-262 section 7.9 and go on your way.

I'll let you know how that goes. I even have a particular person in mind... :^D