www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21637] New: Allow trailing comma in the ImportList

https://issues.dlang.org/show_bug.cgi?id=21637

          Issue ID: 21637
           Summary: Allow trailing comma in the ImportList
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com

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.

--
Feb 14