Nobody understands templates?
FreeSlave
freeslave93 at gmail.com
Fri Feb 28 11:25:42 PST 2014
Well, when you're starting to use many templates you may end up
with separate library.
Templates provide compile-time correctness, concepts (in Boost
sense), policy-base design (see "Modern C++ Design: Generic
Programming and Design Patterns Applied" by Andrei Alexandrescu)
and compile-time choice of the most optimized way to do things.
Eventually templates are here just to ease programming of
applications and reduce boilerplate. All these things that we
expect from libraries and that library's author must take into
account.
D is multiparadigm language so you should not worry if you don't
use some of its features. You may ask same question about
delegates, attributes or user defined exceptions. The answer is
simple: it all depends on your style, preferences and needs, your
vision how perfect code should look like.
More information about the Digitalmars-d-learn
mailing list