Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why is C++...

Name: Anonymous 2011-12-07 12:06

...so bad? Why does it have such a bad reputation?

I'm an experienced C++ programmer and, while the language has warts, I can't understand the reason for the enormous amount of criticism against the language.

I'd like to hear the honest opinions of /prog/rammers in this regard.

Name: Anonymous 2011-12-08 14:08

>>60
Uglyness and complications are highly subjective factors.
related to the standard libraries and to legacy C features

No.

template <typename T>
bool write(const T& obj) {
    typename T::iter i = obj.iter();
    // ...
}

Is typename really necessary? Oh wait. There's this nice feature auto type inference in the C++11.

template <typename T>
bool write(const T& obj) {
    auto i = obj.iter();
    // ...
}

auto type inference

template<class A, class B>
auto add(const A &a, const B &b) -> decltype(a+b) {return a+b;}

If this isn't ugly, at least it's verbose.
Seriously, C++ is going to break.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List