Warn on unused imports?

Jacob Carlborg doob at me.com
Tue Sep 25 19:28:47 UTC 2018


On 2018-09-25 16:20, FeepingCreature wrote:

> If that's the way D wanted to go, it shouldn't have turned itself into a 
> metaprogramming monster that's completely unevaluable by Linter tools, 
> *or* it should offer some way to dump a fixed-format lowered 
> representation with line number information that tools can analyze. As 
> it stands, it is literally impossible to evaluate whether an import is 
> unused without evaluating the entire compile-time subset of D.

The DMD compiler is available as a library. A linter tool can be based 
on that.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list