by code_duck · 15y ago · 0 comments
I dislike working on code written by people who feel the need to omit these symbols. I would prefer if JavaScript would, like PHP or C, require semicolons at the end of every statement.
This does not create a situation like the semicolon insertion in JavaScript, however, and I don't perceive as an ambiguity or inconsistency issue.
Are you saying this detail about PHP causes problems of some sort? I can't think of any. If JavaScript were to work like that, and only let you omit a semicolon before a closing script tag, that would be absolutely fine with me.