[Issue 14704] The design, which allows not to write import, import, import ... for selective imports

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jun 18 07:56:54 PDT 2015


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

--- Comment #26 from dennis.m.ritchie at mail.ru ---
At the moment, we can only write this:

import a, b, c : baz;

And we can not write this:

import a : foo, b : bar, c : baz;

So do not be, because it is completely unreadable (if a lot of modules - a
comma separates bad visibility modules, as it was written in the topic of
Martin Novak):

import a : foo, b : bar, c : baz;

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

My version allows you to write perfectly readable code with a semicolon:

import {
    a : foo;
    b : bar;
    c : baz;
}

--


More information about the Digitalmars-d-bugs mailing list