How about Go's... error on unused imports?

Leandro Lucarella llucax at gmail.com
Sat Nov 14 09:28:24 PST 2009


Bill Baxter, el 14 de noviembre a las 06:47 me escribiste:
> 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.

As I said in the bug report, see bug 3505 too ;)
http://d.puremagic.com/issues/show_bug.cgi?id=3505

I reported 3 separated bugs because they are orthogonal features, but they
make more sense if all are implemented at the same time:
http://d.puremagic.com/issues/show_bug.cgi?id=3503
http://d.puremagic.com/issues/show_bug.cgi?id=3504
http://d.puremagic.com/issues/show_bug.cgi?id=3505


-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
El techo de mi cuarto lleno de planetas
Y mi mente es un planeta más
Donde vivo yo y nadie podrá entrar
Jamás



More information about the Digitalmars-d mailing list