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

Adam D. Ruppe destructionator at gmail.com
Thu Nov 12 18:33:05 PST 2009


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.

-- 
Adam D. Ruppe
http://arsdnet.net



More information about the Digitalmars-d mailing list