std.traits.ParameterDefaults implementation

Adam D. Ruppe destructionator at gmail.com
Tue Apr 9 01:53:09 UTC 2019


On Tuesday, 9 April 2019 at 01:16:18 UTC, Meta wrote:
> If I had to guess, I would say it's a combination of this, as 
> well as the fact that this template is 7 years old:

Yeah, though the original version is actually closer to what I'd 
expect it to be; the other stuff I find really questionable was 
added later in response to bugs.

But as far as I can tell, those bugs have since been fixed.

> I was only starting to look into D in winter of 2012, so I 
> don't know if compile-time metaprogramming was very widely-used 
> at the time, or if the necessary idioms and best practices had 
> developed yet.

I was using it pretty heavily at the time; my web.d was actively 
in production on a few sites as early as 2011, and web.d uses the 
reflection capabilities to generate html for D functions.

But yeah, it took a lot of gnarly workarounds to make it work 
back then.


More information about the Digitalmars-d mailing list