True. I can't remember what specifically in his application he was complaining about - but I remember be a bit confused at how it could possibly be slow. I think it was a mail sorting application (as in snail mail). They used a lot of MFC, so it could be that he was comparing std::string against MFC's string class. Which to be fair - was probably faster than std::string at the time.STL has many implementations and has been probably reimplemented a couple of times on a number of platforms during years, so its quality has greatly increased. At the beginning it was indeed slow, especially std::string. You have some ropes there and probably other classes that work faster for particular purposes so there is a way to overcome that. But your friend's opinion could have been based on the state of the art that was two years back.
Right, but to echo some sentiments from the "discipline" argument, it seems to depend on how used to it you are. I find every time I have to do Java, I always end up making a "C++ mistake" in it. I don't think I'm alone in that.Let's face it though - there are plenty of things that are easier to do in Java than in C++ Probably not because of the language itself (though that's probably true as well) but because of the whole code library that is available "out there".




Reply With Quote


Yeah, I know the language itself is easy, but parenthesis might kill you...

Bookmarks