What does the notwithstanding keyword mean in Google Go?
2条回答 默认 最新
dongxia9519 2010-03-22 03:12关注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.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报