Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As 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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: