3 ms·
> You end up having to specify the type, you don't have a 'Generic' type. And you may have to deal with dynamic_cast Do you really need one? Because then you r
by kombine 14y ago
> You end up having to specify the type, you don't have a 'Generic' type. And you may have to deal with dynamic_cast
Do you really need one? Because then you really are dealing with run time polymorphism, whereas templates are all about compile time.
I recommend checking D programming language out. It has very powerful templates with a nicer syntax than C++ and a lot of other things aiding metaprogramming. Moreover with Ranges you get an implementation of ideas laid out in STL but with a better syntax and matching the power of what is in proper functional languages.