3 ms·
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
by icey 18y ago
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 http://www.openjs.com/articles/semicolon_insertion.php
- jacquesm 18y agoWhat 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.
- lacker 18y agoThe 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.