Why Templates?

Ivan Senji ivan.senji_REMOVE_ at _THIS__gmail.com
Sun Mar 5 00:23:16 PST 2006


Hasan Aljudy wrote:
> I feel the same.
> I do come from C++ background, but I just hate templates! (Now I hate 
> C++ itself :)
> I think templates were introduced in C++ to solve the "no-base-class" 
> problem.

It is the other way around, languages introduce common base class to 
solve the no-templates-problem. (Not a very good solution IMO).

> In other words, it's a hack that solves a misfeature in C++.
> 
> D's templates are not really templates any more, they're more like a 
> meta-programming facility. Or so I think, anyway. I don't really 
> understand templates anyway, not to mention meta programming
> 



More information about the Digitalmars-d mailing list