Contents:  Japanese  [English] [Japanese]  English 

2004/10/19

JavaScriptのセミコロン Semicolons on JavaScript

覚書。

Javascriptでは行の終わりにセミコロンが要らない場合があるらしい。知らなかった。。。
cf. Automatic Semicolon Insertion, sec. 7.9, p. 22, Standard ECMA-262: ECMAScript Language Specification (.pdf)

これは言語としては面白い仕様ではなかろうか。他の言語にもこんなのあるのか。。。

今は時間がないので、理解したらまた書こう。
Just notes.

Seems Javascript needs no semicolon at the end of line in some cases...
cf. Automatic Semicolon Insertion, sec. 7.9, p. 22, Standard ECMA-262: ECMAScript Language Specification (.pdf)

This spec on the language is very interesting. Are there any other languages like this?

I'll write about this when I have enough time to read and understand this spec.

0 Comments (count includes deleted comments)

Post a Comment

[Home]