Re: How many years of C++ experience is required?
Am 25.02.2012 22:52, schrieb P. Areias:
If you are stuck in a place where they still don't believe in templates and the STL, 100 years of experience won't do any good.
Note that you are mixing, in one argument, the template
parametrization mechanism with one of its applications (the Standard
Library containers - or STL).
This is quite misleading. Even though STL is no official term of the
standard it is typically be translated as "Standard Template Library",
not "Standard Library Containers".
The latter imposes an additional
decision on what is now C++: the departure from object-oriented
paradigm (for performance reasons). This is an issue.
C++ does not follow some special paradigm, and so does the library
reflect several paradigms - including object-oriented and functional. I
don't see how this is "an issue". It may be an issue, if you have very
special constraints on the types that you are using, maybe: All names
need to start with upper-case, all class types must have a virtual
destructor, among a lot of others. If the library would have required
virtual destructor for std::vector - just as an example, because you are
referring to containers - it would unnecessarily impose runtime
constraints on user code that would not take advantage of dynamic
polymorphism. If you need *additional* polymorphic containers, you can
build your own library (most parts in terms of non-polymorphic
containers like those from the Standard Library). If you think that your
polymorphic library is of interest for others as well, this could be a
very reasonable base for a corresponding proposal provided to the C++
Standard Committee.
Greetings from Bremen,
Daniel Kr?gler
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]