www.digitalmars.com         C & C++   DMDScript  

D - another vote for better templates

reply Glen Whitney <Glen_member pathlink.com> writes:
Just another "vote" that I would try D for programming projects under my control
if it had more attractive template features, especially including implicit
template instantiation, which I (like many posters here) feel is an essential
feature for generic programming. (D's inline functions wallop C++'s
functor-classes in this regard, but it's hard or at the very least unpleasant to
really capitalize on that advantage without implicitly-instantiated templates.)

I am posting in the hopes that signs of enough demand might lead to improvement
in this area... Otherwise, D does have the refreshing feel of C++ freed from its
C legacy.

Glen Whitney
Apr 15 2004
parent Dave Sieber <dsieber spamnot.sbcglobal.net> writes:
Glen Whitney <Glen_member pathlink.com> wrote:

 Just another "vote" that I would try D for programming projects under
 my control if it had more attractive template features, especially
 including implicit template instantiation, which I (like many posters
 here) feel is an essential feature for generic programming. (D's
 inline functions wallop C++'s functor-classes in this regard, but it's
 hard or at the very least unpleasant to really capitalize on that
 advantage without implicitly-instantiated templates.) 

I haven't used templates with D yet, but on the face of it, implicit instantiation seems like a good idea. Perhaps there are good reasons why Walter hasn't implemented it (and they have probably been discussed here, before my time :-) -- dave
Apr 15 2004