News for hackers. Stuff that matters.
Re:Writing great Javascript by funthree on Saturday March 24, 2012 @12:05PM (#3749689)
Or you could actually just read the source code of the libs you are using...
Re:Writing great Javascript by esrauch on Saturday March 24, 2012 @12:10PM (#3749705)
It's pretty easy to miss a terminating semicolon which will waste time, but the real use case is for people who are writing the libs that other people are using; they have absolutely no knowledge or control of what other javascript might be prependend or appended onto theirs.
Re:Writing great Javascript by user24 on Saturday March 24, 2012 @08:09PM (#3751232)
Yeah. So I add a trailing semicolon. Then the 3rd party library releases an update. I have to remember to merge my patch every time they update, do I?