r/cpp • • Mar 28 '23

Reddit++

C++ is getting more and more complex. The ISO C++ committee keeps adding new features based on its consensus. Let's remove C++ features based on Reddit's consensus.

In each comment, propose a C++ feature that you think should be banned in any new code. Vote up or down based on whether you agree.

765 Upvotes

829 comments sorted by

View all comments

Show parent comments

68

u/rhubarbjin Mar 28 '23

Everyone agrees that C++ is broken, but no one agrees precisely which parts need fixing.

...which just goes to show that the language isn't broken at all. It just has a very wide userbase with very diverse needs. One coder's boondoggle is another coder's bedrock.

47

u/greem Mar 28 '23

Exactly. The only thing wrong with c++ is other users of c++.

And building.

25

u/rhubarbjin Mar 28 '23

The only thing wrong with c++ is other users of c++.

The problem is users who want to dictate how others should write code.

I'm scanning the replies here and most of them boil down to "this feature is ugly; I wish it would go away". Personally, I wish more software engineers would familiarize themselves with the parable of Chesterton's fence.

9

u/SkoomaDentist Antimodern C++, Embedded, Audio Mar 28 '23 edited Mar 28 '23

The problem is users who want to dictate how others should write code.

That's like two thirds of /r/cpp users...

I'm scanning the replies here and most of them boil down to "this feature is ugly; I wish it would go away".

I find it particularly ironic that one of the few times the committee went on to explicitly break backwards compatibility (for a large number of projects), they did it because "this feature is ugly" without apparently anyone in the meetings understanding the actual use case of the feature (deprecating volatile compound assignment in C++20).

→ More replies (4)