Hacker News new | ask | show | jobs
by verroq 4935 days ago
I don't get all this C++ hate from people that has never even used it.

Personally I want a better C and C++ satisfies most of what I want.

    1. Type level polymorphism (generics/templates/etc)
    2. Easier ways to manage memory (constructors/destructors, auto/shared pointers)
    3. A modules system (namespaces)
    4. Lambdas, etc to make life easier (C++11)
    5. A standard library with useful data structures
    6. Fast
It seems all to me all these haters still think that C++ is just C with classes, but C++ is a fairly vast language and OOP is just a small part.

C++ is blazing fast, it has an elegant standard library and templates do make sense if you know what you are doing.

You are trying to use cutting edge features that aren't properly standardised yet and complain that the error message is a bit long? Granted, template error messages aren't always the one liner you are expecting, but they are readable.

1 comments

> I don't get all this C++ hate from people that has never even used it.

wrong. I use it every day, on a fairly large code base.

obviously, for portability reasons, nobody working on the project is allowed to even think about C++11, as well as other headache-inducing features - and that includes a fair chunk of the standard library.