Nobody understands templates?
Dicebot
public at dicebot.lv
Fri Feb 28 11:06:24 PST 2014
On Friday, 28 February 2014 at 18:42:57 UTC, Steve Teale wrote:
> Is this typical - libraries use templates, applications don't,
> or
> am I just being unimaginative?
>
> Steve
It is quite true as a generalization but in practice border line
between application and a library is not that clear. You often
have common modules used in various parts of an application. Kind
of internal mini-libraries.
Also every time you catch yourself doing any sort of copy-paste,
it is quite possible that it can be replaced by mixin / template
mixin instead. Application that are built in more declarative way
benefit more from such tool set than traditional imperative ones.
More information about the Digitalmars-d-learn
mailing list