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

bitwise via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 14 12:13:07 PST 2016


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.

     Bit



More information about the Digitalmars-d mailing list