Friday, January 13, 2012

JS and semicolons

Great article on automatic semicolon insertion. In short, author states that before arguing for mandatory using of semicolons, one must firstly learn what expressions in JS are.
Article confirmed my thoughts that writing:
return
    7
you should blame yourself, not AIS.

I personally go slight further: semicolons was design error in C back in 70th. There are no real need in writing several statements in one line, and never was. There are plenty of languages which never has semicolons as statement separators, and they prosper.

I definitely must translate that article to Russian.

No comments: