英文:
notwithstanding keyword
问题
notwithstanding
关键字在Google Go中的含义是什么?
英文:
What does the notwithstanding
keyword mean in Google Go?
答案1
得分: 45
看起来对我来说是词法分析器中的彩蛋:
相关部分是符号表:
"notwithstanding", LIGNORE, Txxx, OXXX,
"thetruthofthematter", LIGNORE, Txxx, OXXX,
"despiteallobjections", LIGNORE, Txxx, OXXX,
"whereas", LIGNORE, Txxx, OXXX,
"insofaras", LIGNORE, Txxx, OXXX,
我猜它们可以用来测试对词法类型 LIGNORE 的处理,但似乎没有任何“真正”的被忽略的标记。
英文:
2017 Update: There was a major parser update and the new one no longer seems to support these Easter egg words.
Looks like an easter egg in the lexer to me:
the relevant section is the symbol table:
"notwithstanding", LIGNORE, Txxx, OXXX,
"thetruthofthematter", LIGNORE, Txxx, OXXX,
"despiteallobjections", LIGNORE, Txxx, OXXX,
"whereas", LIGNORE, Txxx, OXXX,
"insofaras", LIGNORE, Txxx, OXXX,
I guess they could be used to test handling of the lexical type LIGNORE, but there doesn't seem to be any "real" ignored tokens.
答案2
得分: 8
Go编程语言规范中不包括关键字'notwithstanding'。
英文:
The Go Programming Language Specification does not include the keyword 'notwithstanding'.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论