-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
予約語などで変数名などを作らないようにする #9
Comments
ここに予約語が書かれている Keywords キーワードの予約語
"use strict"の厳格モードでは
も予約語になる Future Reserved Words 将来のための予約語
"use strict"の厳格モードでは
も予約語になる NullLiteral nullリテラル
BooleanLiteral booleanリテラル
|
TypeScriptでは以下のものが文脈によっては使えなくなる
|
基本的に"use strict"を使う厳格モードを想定していて、文脈に応じて使えるワードと使えないワードを分けるのは大変なので、上に書いてある語句の変数、型は作られないようにする |
TypeScriptで、型名としてunknownが使えないようになってたんだ。
変数名には使えなくもないけど、紛らわしいので弾くようにしよう |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: