How about Go's... error on unused imports?
Bill Baxter
wbaxter at gmail.com
Sat Nov 14 06:47:20 PST 2009
On Sat, Nov 14, 2009 at 5:17 AM, bearophile <bearophileHUGS at lycos.com> wrote:
> Leandro Lucarella:
>
>> and "marked" them with [module]
>
> Thank you for your work. This is good:
> http://d.puremagic.com/issues/show_bug.cgi?id=3503
> Once all those things are fixed, the module system will start to look OK regarding *modules*, but I think the semantics of the packages and their usage will need some tuning still.
I used to be for such a change, but I'm not sure anymore that it's a
good idea for D. See the comment I added to the report.
One thing that I'd like would be a DRY way to use the leaf name of a
module. Often I end up writing things like:
import MyModule = foo.bar.MyModule;
Maybe something like this could be allowed to mean the same thing:
import (foo.bar.)MyModule;
I think this has been brought up before, but I don't recall any good
suggestions.
--bb
More information about the Digitalmars-d
mailing list