DIP10005: Dependency-Carrying Declarations is now available for community feedback

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 14 12:16:29 PST 2016


On 12/14/2016 03:13 PM, bitwise wrote:
> On Tuesday, 13 December 2016 at 22:33:24 UTC, Andrei Alexandrescu wrote:
>> Destroy.
>>
>> https://github.com/dlang/DIPs/pull/51/files
>>
>>
>> Andrei
>
> I think the DIP indicated you may have considered this, but why not just
> remove the requirement of 'static import ..' for using fully qualified
> names?
>
> struct Buffered(Range) if (std.range.isInputRange!Range)
> {
>     import std.range;
>     // ...
> }
>
> You could then simply qualify any parameters or constraints and use
> local imports for the body.

We'd like people and simplistic tools such as grep to indicate quickly 
where imports are present. -- Andrei



More information about the Digitalmars-d mailing list