1 posts tagged with crockford.
Displaying 1 through 1 of 1. Subscribe:

The infernal semicolon

This February, Twitter released Bootstrap 2 a rewrite of their earlier Bootstrap code. It's basically a framework that offers barebones styles and functionality. What's of interest, though, is that it uses almost no semicolons (just 15 in over 1k lines of code), which are normally used to separate lines of code. Instead, the code relies on automatic semicolon insertion (ASI). Unfortunately this code breaks when minified using JSMin. This was reported as an issue on Bootstraps's github page which led to a heated discussion on the topic of ASI. [more inside]
posted by Deathalicious on Apr 16, 2012 - 128 comments

Page: 1