What does the notwithstanding keyword mean in Google Go?
What does the notwithstanding keyword mean in Google Go?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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:
https://github.com/golang/go/blob/08e25fc1ba397e02ec776561ed73b7f9a8b94392/src/cmd/compile/internal/gc/lex.go#L2152-L2156
the relevant section is the symbol table:
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.