4 ms·
What do you mean a terminator is required? I think he's talking about cases like https://blog.jondh.me.uk/2011/04/javascript-gotcha-implicit-semi-colon-insertio
by zodiac 9y ago
What do you mean a terminator is required? I think he's talking about cases like https://blog.jondh.me.uk/2011/04/javascript-gotcha-implicit-semi-colon-insertion/ https://blog.jondh.me.uk/2011/04/javascript-gotcha-implicit-...
- nailer 9y agoAs in: statements must be terminated. In the case of JS, JS was designed to require a semicolon to terminate statements, then ASI was hacked on when programmers realized they were already adding newlines. ASI is a bad idea because it's not consistent (that said, ugly code is more likely to trigger ASI issues than otherwise). Python was designed so there's a single terminator used by both humans and machines.