What's wrong with D's templates?

retard re at tard.com.invalid
Fri Dec 18 04:28:30 PST 2009


Fri, 18 Dec 2009 10:50:52 +0200, Yigal Chripun wrote:

> There's a whole range of designs for this and related issues and IMO the
> C++ design is by far the worst of them all. not to mention the fact that
> it isn't an orthogonal design (like many other "features" in c++). I'd
> much prefer a true generics design to be separated from compile-time
> execution of code with e.g. CTFE or AST macros, or other designs.

There won't be AST macros in D2, yet. Maybe in D3. You forgot to mention 
executable bloat inherent to the template design.



More information about the Digitalmars-d mailing list