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:48

>>67

I agree with you there. typename is simply a cue for the parser to be able to parse the grammar, useless to the programmer. Template parsing yields ambiguities, and the way C++ solved it is hinting the parser with extra tokens to avoid reduction conflicts. This is one huge wart in my opinion.

Nonetheless, G++ and MSVC are able to parse the code without the typename keyword prefixing a dependent type whatsoever. Maybe these usages will futurely disappear.

Some choices for keywords in C++11 sounds ridiculous to me too. nullptr, decltype, typename and more. This obsessive need to have a single-pass compiler (forcing the language to be polluted with non-intuitive syntax) is also a botch.

However, when people don't like something, they should manifest the discontent in order to yield changes. In my humble opinion, C++11 could have been much better if the community -- not the language, not the technical needs -- behaved better during these ten years the language gained popularity, both C++ aficionados and C++ haters. Aficionados behave as if they were programming gods, praising complexity and further legitimizing the criticism the C++ haters themselves shoot against them.

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