Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is the semicolon in "tl;dr" strictly necessary?


Funny how they put the semi-colon there but not in the Javascript.


Yes. "Too long didn't read" is not grammatically correct.


(For those who don't know there was a standoff between the bootstrap guys and the maker of a popular js minifier tool [Douglas Crockford I think?] over the pragmatism of ending lines in js with semicolons. Bootstrap claims that semi-colons are optional and verbose, while the minifier folks espouse semi-colons as a best practice, and have chosen to consider it "not a bug" that their minifier breaks working code with no semi colons in some cases.)


tl;dr

I'm in the optional semi-colons camp, and it is a bug in the minifier :)


Why not just put them on separate lines? Let the optimizer figure out when to add them. :)


Come on, meow, I thought we were past this :).


Yes. It's to avoid a comma splice and a sentence fragment. "Too long; don't read," versus "Too long, don't read," versus "Too long. don't read."


yes...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: