Hacker News new | past | comments | ask | show | jobs | submit login

It's because of semicolon insertion.

Ostensibly, this was added to the language to make it more user friendly. Instead, it's the source of a lot of bugs.

Here is a decent overview: http://www.openjs.com/articles/semicolon_insertion.php




What were they smoking ? I though the auto-correcting language interpreter/compiler went out the window with Pascal, there were some pretty good reasons for it and 'automatic bug insertion' was the main one.

This ought to be deprecated and exterminated.


The fundamental problem with javascript is that it is not simple to deprecate features and add new ones. Any javascript you write has to work on at least several IE and Firefox versions, and there is no solution for this on the horizon, besides perhaps compilers that emit javascript.




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

Search: