[Issue 13855] Allow multiple selective imports from different modules in a single import statement
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Dec 11 13:59:33 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13855
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs at eml.cc
--- Comment #2 from bearophile_hugs at eml.cc ---
(In reply to Martin Nowak from comment #0)
> Couldn't we just allow this?
>
> import std.algorithm : copy, uniq, std.range : walkLength;
>
> This is one of (very few) grammar warts that regularly annoy me, because I
> have to make it 2 lines
>
> import std.algorithm : copy, uniq;
> import std.range : walkLength;
I prefer the version on two lines, because it's not easy for the eye to tell
apart the ":" from the ",".
--
More information about the Digitalmars-d-bugs
mailing list