I dun a DIP, possibly the best DIP ever

Walter Bright newshound2 at digitalmars.com
Sat Apr 25 10:27:19 UTC 2020


On 4/25/2020 2:49 AM, Stefan Koch wrote:
> This is supposed to make using staticMap cheap?

No. It's to make AliasSeq cheap, to remove motivation for making a special 
syntactic construct for creating a tuple.

Your benchmark shows indeed it has that effect, though you didn't test a version 
that had both your ... and my AliasSeq folded in. That result would be interesting.

There may be some other common template patterns amenable to compiler shortcuts.


More information about the Digitalmars-d mailing list