Bug 21637 – Allow trailing comma in the ImportList
Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-02-14T10:13:28Z
Last change time
2021-09-28T15:55:46Z
Keywords
pull, trivial
Assigned to
Dorian Verna
Creator
Basile-z
Comments
Comment #0 by b2.temp — 2021-02-14T10:13:28Z
Allowing a trailing comma in the https://dlang.org/spec/module.html#ImportList,
e.g
---
import
first,
second,
;
---
would make diffs smaller, eg to add, let's say "third", it is only +1 instead of +2 -1.
Comment #1 by dlang-bot — 2021-07-25T11:19:39Z
@dorianverna17 created dlang/dmd pull request #12917 "[DSSv3] Fix issue 21637: Allow trailing comma in the ImportList" fixing this issue:
- Fix issue 21637: Allow trailing comma in the ImportList
https://github.com/dlang/dmd/pull/12917
Comment #2 by dlang-bot — 2021-07-29T15:01:15Z
@dorianverna17 created dlang/dlang.org pull request #3079 "Issue 21637: trailing comma in import list" mentioning this issue:
- Issue 21637: trailing comma in import list
Added an example of the functionality implemented in the pull request https://github.com/dlang/dmd/pull/12917 at the section regarding selective imports
https://github.com/dlang/dlang.org/pull/3079