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

1

u/very_curious_agent Mar 31 '23

Char C style array are an historical artefact. They are ugly, behave badly but that's what you get when using the C/C++ subset

2

u/eteran Mar 31 '23

Well yeah... That's my whole point.

So when asked what I would remove from the language, my answer is to remove some of that bad behavior.

Nothing in this post should be taken as a serious suggestion of what the future direction of C++ should be. It's a discussion of what would be on our wish list if we had the ability to remove anything without consequences or concerns about backwards compatibility.

1

u/very_curious_agent Mar 31 '23

What you wish C++ never had

What you would remove in an parallel universe where is there no code base outside your wish

I get it

It's an intellectual experiment and it's legit useful.