New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Golang grammar for constants #31207
Comments
Why shouldn't it be parsed? |
Similarly, var x int
var y = *&*&*&*&*&x // y == x |
@go101 in what language did you see that behaviour ? |
If we think math, that is simple to parse. But we are in other environment and we need to define very explicit what is ok. |
@ancaemanuel I'm going to close this issue because the language spec clearly accepts these kind of expressions, and the compiler is doing the right thing per the language spec. If you have questions about this I suggest that you use a forum rather than the issue tracker; see https://golang.org/wiki/Questions . Thanks. |
See this:
https://play.golang.org/p/50l_XzHNSiS
How it is possible to have this parsed: "-+-+-+-1" ?
I think it is an error on the parser side, or some more...
The text was updated successfully, but these errors were encountered: