Scope of Mixins
Adam D Ruppe
destructionator at gmail.com
Thu Aug 26 17:45:48 UTC 2021
On Thursday, 26 August 2021 at 17:39:16 UTC, Ali Çehreli wrote:
> String mixins are appealing because they can inject code like C
> macros do. It's not trivially possible to do the same with
> template mixins.
Template mixins are great, but obviously totally inappropriate
here. I'm just talking about using a normal function, possibly
with an alias argument, instead of any kind of mixin.
Too often D programmers reach for fancy code generation when a
simpler function is a better fit.
More information about the Digitalmars-d-learn
mailing list