3 ms·
Optional semicolons is my biggest hate with Javascript --- combined with expression statements silently discarding their result, it makes this kind of mistake f
by david-given 12y ago
Optional semicolons is my biggest hate with Javascript --- combined with expression statements silently discarding their result, it makes this kind of mistake far too easy to make.
Personally I've never understood with Javascript strict mode doesn't make semicolons mandatory.
- nothrabannosir 12y agoIsn't strict mode purely semantical? IIRC you can implement a use strict pass purely on the AST, after the parser. It's not an excuse, of course.
- david-given 12y agoBah. You're absolutely right, of course, that's why strict mode won't help. Now I find myself wishing there was a stricter mode. <script type="text/sensible-javascript">, perhaps...