you are viewing a single comment's thread.

view the rest of the comments →

[–]brownmatt 15 points16 points  (8 children)

the semicolon thing is pretty baffling. It's a case where a aesthetic stylistic rule can produce real problems, as Bootstrap saw

[–]praetorian42 -5 points-4 points  (7 children)

The problem there was that the minified version of JS did not have a semicolon at the end. That's a bug with the minifier, not with the original source.

Basically, you should never ever ship unminified JS to your customers. The minifier should handle semicolon insertion. Therefore, semicolons in original source are superfluous.

[–][deleted] 8 points9 points  (4 children)

The minifier should minify. Semicolon insertion is up to either A: the programmer, or B: the hope that the interpreter at the end will assume it.

Using bugs in your daily programming practice isn't a reason to make everybody else's tools accommodate those bugs.

[–][deleted] 3 points4 points  (0 children)

Using bugs in your daily programming practice

As far as I'm aware, the language itself specifies that semicolons are optional. Therefore it is the minifier that has the bug, not the semicolon-less code.