How about Go's... error on unused imports?
Clay Smith
clay.smith.r at gmail.com
Fri Nov 13 11:15:46 PST 2009
bearophile wrote:
> Clay Smith:
>
>> I would like my all.d files to not give errors :o<
>
> "all.d" files are a hack used to patch one of the minor holes of the current D module system. The right way to do that is with a syntax like (that must not import the 'foo' name too in the current namespace, only the names inside "std.foo"):
>
> import std.foo: *;
>
> Every part of a language needs to be designed with care. Approximate designs with several holes aren't enough.
>
> Bye,
> bearophile
That would be a nice feature.
More information about the Digitalmars-d
mailing list