April 16, 2004 another vote for better templates | ||||
---|---|---|---|---|
| ||||
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 |
April 16, 2004 Re: another vote for better templates | ||||
---|---|---|---|---|
| ||||
Posted in reply to Glen Whitney | 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 |
Copyright © 1999-2021 by the D Language Foundation