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

Leandro Lucarella llucax at gmail.com
Fri Nov 13 05:01:42 PST 2009


Walter Bright, el 12 de noviembre a las 19:35 me escribiste:
> Andrei Alexandrescu wrote:
> >I think this is an environment issue. I like Eclipse's approach.
> >Java unnecessary imports are underlined with a wavy red line.
> 
> I agree. I would find it very annoying to have to remove unused
> imports to get it to compiler. First off, I tend to have "all"
> imports that import everything.

That's odd, first you say you think D would be a failure if it needs an
IDE and now you say that the only way to avoid unnecessary dependencies
you should rely on an IDE =)

I really think this should be a compiler feature. Make it a warning then
(and while you are at it, make it a *real* warning, not a warning-error).

> Secondly, what if I version out some code, wouldn't want to version the
> import too.

Why?

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Ingeniero Juanjo Charlante, Linux es como una mermelada?



More information about the Digitalmars-d mailing list