2016-08-21 87 views

回答

9

以下5个关键字被忽略:

notwithstanding 
thetruthofthematter 
despiteallobjections 
whereas 
insofaras 

Yes, really


更新:在评论中的Deleplace注释中,复活节彩蛋关键字已被删除。它看起来像this commit在主要解析器更新期间将它们取出。如果您尝试运行a program containing one of these tokens,则会发现它们现在被视为普通标识符。

+1

不再! 他们很好,有用和简洁,而他们延续 – Deleplace

8

词法分析器中有一些复活节彩蛋关键字(lex.go),它们不在官方文档中,因此编译器会忽略它们。

在这里,他们是:

notwithstanding 
thetruthofthematter 
despiteallobjections 
whereas 
insofaras 

您可以到this交谈了解更多详情报告。

3

它看起来像秘密关键字将被删除在v1.10。见here

对于任何好奇的人,here是引入关键字的提交。