Re: C++... is it dying?
On 20 Jul., 21:29, rpbg...@yahoo.com (Roland Pibinger) wrote:
On Sun, 20 Jul 2008 12:11:21 -0500, Sam <sam@...com> wrote:
In the grand scheme of things, STL matured fairly
recently. Plenty of code still around, dating back from pre-STL days.
STL was introduced in 1995 and standardized in 1998. It came from a
single source and was usable from the beginning (although popular
compilers didn't support all STL features). Moreover, STL was
tremendously hyped for years (this is not an exaggeration as anyone
interested in C++ in the late nineties can confirm). STL's low rate of
adoption is rooted primarily in the STL, not in lazy and unwilling
programmers.
The major STL problems are obvoius by now:
- restricion to value semantics
- template obfuscation, esp. through allocators
- non-optimal iterator design
Is this indeed so? I just don't see how having STL not being value-
based could be possible in the first place. Secondly, I do not see the
real obfuscation. How often do you need to use e.g. std::vector with
anything but the standard allocator? I have never used a standard
container with a non-standard container, and every C++ project I've
been developing has taken advantage of the standard containers - to
great benefit IMO.
/Peter