February 02, 2021 Re: Warn on unused imports? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Basile B. | On Tuesday, 2 February 2021 at 08:35:40 UTC, Basile B. wrote: > $suggestion On Sunday, 31 January 2021 at 19:18:04 UTC, a11e99z wrote: > $suggestion Thanks for the answers, i take it as a "no" ;) |
February 03, 2021 Re: Warn on unused imports? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Basile B. | 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.
|
Copyright © 1999-2021 by the D Language Foundation