Warn on unused imports?
a11e99z
black80 at bk.ru
Wed Feb 3 13:46:58 UTC 2021
On Tuesday, 2 February 2021 at 08:35:40 UTC, Basile B. wrote:
> On Sunday, 31 January 2021 at 19:18:04 UTC, a11e99z wrote:
>> suggestion: implicit import at same line as using
>>
>> auto result = std.algorithm:find!blahblah(args);
>
> We have that, remember
>
> ---
> template from(string moduleName)
> {
> mixin("import from = " ~ moduleName ~ ";");
> }
>
> void main()
> {
> from!"std.stdio".writeln("check
> https://dlang.org/blog/2017/02/13/a-new-import-idiom/");
> }
> ---
I didn't know that.
yep, I checked, its working.
but IntelliSense cannot help with strings.
More information about the Digitalmars-d
mailing list