On 18/04/2011, at 16:37, Mike Ratcliffe wrote:

> Jorge, I would opt in for warnings e.g. if I planned on minifying my web app 
> in the future. Most web apps will burn in hell if they are missing semicolons 
> when you minify them.

Indeed, for some minifiers it's a must.

These minifiers avoid (understandably) the hassle/expensiveness of building a 
parse tree and rely on (clever!) tricks that in turn require the programmer to 
put every semicolon in the source text, as if post-ASI, explicitly.

But "a=b\nc=d\n".length is equal to "a=b;c=d;".length and that proves that it 
can be minified just as much without the explicit semicolons.
-- 
Jorge.
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to