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

Leandro Lucarella llucax at gmail.com
Thu Nov 12 18:57:14 PST 2009


Justin Johansson, el 12 de noviembre a las 21:40 me escribiste:
> Adam D. Ruppe Wrote:
> 
> > On Thu, Nov 12, 2009 at 11:12:49PM -0300, Leandro Lucarella wrote:
> > > Do you see any reasons not to do that? I think it happens very often to
> > > stop using some import and never notice it.
> > 
> > I'll often import std.stdio when doing printf/writefln debugging. It'd be
> > really annoying if the compiler threw an error when I comment out that
> > writefln temporarily.
> 
> Uhmm, definitely should be a warning, not an error.

I agree, but you know what's the D policy about warnings :-/

-- 
Leandro Lucarella (AKA luca)                     http://llucax.com.ar/
----------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------
Es mas posible, que un elefante maneje un cero km a que un camello
habite un departamento de un ambiente.
	-- Peperino Pómoro



More information about the Digitalmars-d mailing list