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
[DSSv3] Issue 21637: trailing comma in import list #3079
Conversation
Added an example of the functionality implemented in the pull request dlang/dmd#12917 at the section regarding selective imports
Thanks for your pull request and interest in making D better, @dorianverna17! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla references
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is worth bringing attention to in the specification. Trailing commas are allowed in general (argument list, array literal, enum members, case statement) and there are no examples there either.
Should I close this pull request @dkorpel ? |
The change should still be reflected in the grammar: Lines 196 to 199 in 0a90480
You can use this PR to do that. For reference, here's how ParameterList is specified: Lines 33 to 37 in 0a90480
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the implementation it seems you actually modified ImportBindList
, not ImportList
, so I pointed you to the wrong rule. Also, your implementation allows an empty bind list, but the grammar does not unless you add $(OPT)
behind ImportBindList
(similar to ParameterList as well).
Added an example of the functionality implemented in the pull request dlang/dmd#12917 at the section regarding selective imports