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

Clay Smith clay.smith.r at gmail.com
Fri Nov 13 09:51:52 PST 2009


Leandro Lucarella wrote:
> I'm sorry to bring up another "How about Go's ..." topic, but I think this
> feature is very in sync with D and it should be really easy to implement.
> 
> Go issues an error if you have an import that's never used, to avoid
> unnecessary dependencies.
> 
> Do you see any reasons not to do that? I think it happens very often to
> stop using some import and never notice it.
> 

No, this is a job to be left to the IDE, not compiler.



More information about the Digitalmars-d mailing list