News for hackers. Stuff that matters.
Re:Dropbox dives into CoffeeScript by esrauch on Thursday September 13, 2012 @06:30PM (#4518988)
I'm not so sure the addition one isn't actually also applicable to javascript automatic semicolon insertion. The google js style guide (publicly available) says that all lines must end in an infix operator, opening bracket or semicolon to always avoid accidental semicolon insertion.

Though the switch one seems surprising (read: a flaw) since it is usually safe to end a line with a comma in vanilla js.

Re:Dropbox dives into CoffeeScript by ufo on Thursday September 13, 2012 @06:53PM (#4519097)
You might want to check out this great article on semicolon insertion:

http://inimino.org/~inimino/blog/javascript_semicolons

Basically, you can almost always remove the semicolons without trouble and more often then not problems occur from semicolons not being inserted then from them being inserted in unexpected positions. The "returning an object literal" case is the only common case where a semicolon is mischeviously inserted.

Re:Dropbox dives into CoffeeScript by esrauch on Thursday September 13, 2012 @08:59PM (#4519498)
I wasn't trying to express a strong stance on the issue, just pointing out what the Google's js style guide says, the + on the next line wouldn't be allowed there (nor .)

http://google-styleguide.googlecode.com/svn/trunk/javascript...