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

Does the preceding comma style not get in the way of JavaScript's auto semi-colon insertion?



It appears it doesn't, but I'd like to know WHY it doesn't.

Do Javascript parsers look at the next line before judging whether or not to treat the line-ending as an implicit semicolon?

(Do all parsers treat it in the same way? Is it part of the spec?)

-----


Everything you need to know:

http://blog.izs.me/post/2353458699/an-open-letter-to-javascr...

-----


Yes. Yes. Yes.

-----




Applications are open for YC Summer 2015

Guidelines | FAQ | Support | Lists | Bookmarklet | DMCA | Y Combinator | Apply | Contact

Search: