bearophile wrote:
"Implementing Include-What-You-Use using clang": I'd like still D module
system to be more tidy and import only the "foo" name when you write: import
foo; So you need to use foo.bar and foo.baz.

D already does this:

static import foo;


And to import "bar" and "baz"
names and not the "foo" name when you write: import foo: bar, baz;

D already does this, too.

And to
import all the names from "foo" (but not the "foo" name itself) using some
syntax with * or "all" or something similar. This makes code more readable
and tidy, and makes the work of D analysis tools simpler.

This has been discussed many times, and has been soundly rejected for numerous reasons. For one thing, it does not make analysis easier, because it is unknown what files will actually get imported.

Reply via email to