我期待找到const
和let
作爲保留關鍵字。 I've found onlyconst
,但沒有let
:爲什麼`let`沒有被指定爲規範中的保留關鍵字
Keyword::
await
break
case catch class const continue <---- `const` here
debugger default delete do
else export extends
finally for function
if import in instanceof
new
return
superswitch
this throw try typeof
var void
while with
yield
是let
關鍵字?如果不是,爲什麼?
往下看,只是一個缺口,你會發現一張紙條,上面寫着「讓我們和靜態被視爲通過靜態語義限制保留字(參見12.1.1,13.3.1.1,13.7.5.1和14.5.1),而比詞法「。 – BoltClock
有一個音符在那裏解釋的'狀態let' – pvg