Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Agree 100%. Plus in the case of JavaScript it's not really optional. It's just that the interpreter has to pretend it's there.
-
helloback788yI've always wondered; how does that work? Why has it to pretend they are there even if they aren't and not the other way around? What's the benefit? what does "pretending they are there" even mean?
-
http://stackoverflow.com/a/2846298 - a quick explanation on automatic semicolon insertion.
-
tytho23168yI was in the same boat. I wanted to be very explicit about how and when my statements ended. But then I started at a new company who's style guide required ASI style (automatic semicolon insertion) and I've got to say, I've learned to love it. Plus I've learned the real structure of a JavaScript statement. Try it out for a week or two, get a linter to help you.
Call me a semi-colon nazi, but javascript looks naked without those characters!
undefined
putthatsemicolonback
javascript