Difference between revisions of "Mixin Macros Pattern"
(Start of content creation) |
(No difference)
|
Revision as of 11:16, 10 August 2014
From David Simcha's D-Specific Design Patterns talk at DConf 2013.
Problem: Repetitive code with slight variations
Example: Arithmetic operator overloading Want:
- Minimal code duplication
- Ability to use templates/CTFE
(Avoid (Lispy (syntax)))