How to warn of unused imports?

Basile B. via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 9 09:54:30 PST 2016


On Tuesday, 9 February 2016 at 15:21:59 UTC, Basile B. wrote:
> On Monday, 8 February 2016 at 20:48:29 UTC, cy wrote:
>> On Monday, 8 February 2016 at 18:57:52 UTC, Basile B. wrote:
>>
>>> Otherwise, it sounds like a decent enhancement request for 
>>> DMD. I know other compilers who do this warning.
>>
>> It definitely does sound like a decent enhancement request. I 
>> didn't know it wasn't implemented yet, but it should be pretty 
>> straightforward, since within DMD you can access the AST. 
>> Alternatively, implementing DIP50 might let you do it outside 
>> the compiler.
>>
>> http://wiki.dlang.org/DIP50
>
> DIP50 is a "golem"
>
> It looks usefull, and it will help in many cases...but after a 
> while it'll become a problem.

If you don't understand what's a "golem":

AlquiaDa was the golem of the CIA (in the 80's while russians 
were fighting in Afgnan). Useful until a certain point.

Useful until a certain point...


More information about the Digitalmars-d-learn mailing list