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
Support comments everywhere newline is treated as whitespace #924
Comments
A variation on the above example:
That illustrates why such syntax is problematic. It's not enough to support comments on lines without any other expression of syntactically significant tokens. Note that even without the trailing |
Breaking changes should be fine since we're still below 1.0. Interestingly enough it behaves as expected with lambdas:
|
@krader1961 I am not sure what's the problem with Currently having |
@xiaq, Yes, you're right regarding backward compatibility. I was mislead by the failure of the |
I widened the scope of the issue a bit. There are in fact more places where comments should be allowed but currently aren't, such as argument lists (in a lambda) and braced lists. |
Currently this:
fails with:
The text was updated successfully, but these errors were encountered: