I dun a DIP, possibly the best DIP ever

Stefan Koch uplink.coder at googlemail.com
Sat Apr 25 09:49:28 UTC 2020


On Saturday, 25 April 2020 at 09:33:19 UTC, Walter Bright wrote:
> On 4/24/2020 1:55 PM, Walter Bright wrote:
>> Another approach to resolving the original problem (template 
>> instantiation bloat) is for the compiler to recognize 
>> templates like AliasSeq as "special" and implement them 
>> directly.
>> 
>> For example, AliasSeq is defined as:
>> 
>>    template AliasSeq(TList...) { alias AliasSeq = TList; }
>> 
>> This pattern is so simple it can be recognized by the 
>> compiler. (Having std.meta.AliasSeq being a special name known 
>> to the compiler is not necessary.)
>
> Giving this a try:
>
> https://github.com/dlang/dmd/pull/11057

This is supposed to make using staticMap cheap?


More information about the Digitalmars-d mailing list