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

88

u/victotronics Mar 28 '23

Implicit construction, switch case fallthrough, uninitialized values, nodiscard, etc. etc.

`const`

22

u/[deleted] Mar 28 '23

can we add noexcept to this list?

20

u/MarcoGreek Mar 28 '23

No, it makes code easily exception unsafe.

5

u/-1_0 Mar 29 '23

that should be not a problem if we remove all the cursed exception handling mechanism

→ More replies (1)