template mixins for boilerplate

Dicebot via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jun 21 07:24:29 PDT 2014


On Saturday, 21 June 2014 at 13:45:14 UTC, Philippe Sigaud via 
Digitalmars-d-learn wrote:
> Out of curiosity, why use a mixin template containing a string 
> mixin
> instead of, well, directly injecting a string mixin in your 
> struct,
> with a function?

Hiding non-hygienic implementation behind a more reliable 
interface.


More information about the Digitalmars-d-learn mailing list