News for hackers. Stuff that matters.
Re:An Open Letter to JavaScript Leaders Regarding Semicolons by code_duck on Monday December 20, 2010 @11:42PM (#2026971)
Yes. There is one situation in which you may omit a semicolon in PHP.

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.

There are no comments on this comment yet.