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

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Dec 14 06:21:55 PST 2016


On 12/14/16 8:26 AM, Dominikus Dittes Scherkl wrote:
> On Tuesday, 13 December 2016 at 22:33:24 UTC, Andrei Alexandrescu wrote:
>> Destroy.
>>
>> https://github.com/dlang/DIPs/pull/51/files
>
> Why not leave it as it is and only change the compiler to
> perform inputs _within_ a function before evaluating the declaration, so
> that the symbols imported can be used in the declaration?

Thanks. I considered this but it put pressure on the relationship 
between the name and where it's looked up. Consider that imports in a 
function don't need to be at the top. They may also be in nested scopes 
inside the function. It becomes quite tenuous to explain where the 
parameter type names are looked up. -- Andrei



More information about the Digitalmars-d mailing list