What's wrong with D's templates?

retard re at tard.com.invalid
Fri Dec 18 15:08:37 PST 2009


Sat, 19 Dec 2009 00:24:50 +0200, Yigal Chripun wrote:

> to retard:
> different problems should be solved with different tools. Macros should
> be used for meta-programming and generics for type-parameters. they
> don't exclude each other. E.g. Nemerle has an awesome macro system yet
> it also has .net generics too.
> As the saying goes -"when all you got is a hammer everything looks like
> a nail" which is a very bad situation to be in. templates are that
> hammer while a much better approach is to go and by a toolbox with
> appropriate tools for your problem set.

I didn't say anything that contradicts this.



More information about the Digitalmars-d mailing list