DIP 1005 - Preliminary Review Round 1

Andrej Mitrovic via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 23 12:25:09 PDT 2017


On Sunday, 23 April 2017 at 16:39:35 UTC, deadalnix wrote:
> It's just one per module. Templates are only instantiated once 
> per new set of arguments. There may be some gain here, but I 
> doubt this is worth adding a new language feature.

Ah, good point.

Though there's still merit to this DIP such as this:

> With this syntax, the import is executed only if the declared 
> name (process) is actually looked up.

I don't believe the workaround with the `from` template fixes 
this.


More information about the Digitalmars-d mailing list