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

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


On 12/14/16 3:17 AM, Dicebot wrote:
> On Tuesday, 13 December 2016 at 22:33:24 UTC, Andrei Alexandrescu wrote:
>> Destroy.
>>
>> https://github.com/dlang/DIPs/pull/51/files
>>
>>
>> Andrei
>
> Proposed functionality does feel useful but syntax options mentioned in
> the DIP all seem lacking to me. Most importantly, the one suggested as
> primary option puts import after the symbol in lexical order which looks
> baroque and may even be unprecedented in the language (can't think of
> another case like that immediately).

I don't worry about that too much. We have a precedent with names used 
in the return type of a function, and nobody has ever complained about that:

CommonType!(T1, T2) fun(T1, T2)(T1, T2);


Andrei


More information about the Digitalmars-d mailing list