News for hackers. Stuff that matters.
Re:Zepto goes semicolon-free by famousactress on Monday April 09, 2012 @03:02PM (#3818626)
The one argument I've heard from keeping the semi-colons is to make life easier for minification tools. Is this not an issue?
Re:Zepto goes semicolon-free by lvh on Monday April 09, 2012 @03:12PM (#3818678)
It breaks SOME minifiers. There was some inlining tool used by some mobile ISPs that basically downloaded referenced JS files in <script> tags and injected them inline to get rid of another HTTP request. They broke, because they are stupid, broken tools.

A correct minifier works on the AST of the code anyway (at least in the abstract). It works on the semantic meaning of the code, so it interprets semicolons or the lack thereof exactly the way any other implementation would.

The first case with the broken inlining tool is typically not actually an issue, because your semicolonless code gets put through a minifier which probably adds a bunch of semicolons again :)

Re:Zepto goes semicolon-free by madrobby on Monday April 09, 2012 @03:10PM (#3818670)
It is not an issue. Zepto uses UglifyJS and there have been no issues whatsoever.