[DIP1005] Unused imports in with(import) declarations: leave alone of flag as errors?
Daniel Kozák via Digitalmars-d
digitalmars-d at puremagic.com
Sun Dec 25 08:43:01 PST 2016
Andrei Alexandrescu via Digitalmars-d <digitalmars-d at puremagic.com>
napsal So, pro 24, 2016 v 9∶32 :
> Consider:
>
> with (import std.stdio)
> int fun(int x/*, File f*/)
> {
> // f.writeln("In: ", x);
> return x * x;
> }
>
> Such situations occur during refactorings and code evolution. The
> import is no longer used. Should the compiler flag that as an error,
> or leave it be?
>
>
> Andrei
for such things there should be support in IDE or use some lint tool
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20161225/2f21b82e/attachment.html>
More information about the Digitalmars-d
mailing list