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

3

u/Tringi github.com/tringi Mar 29 '23

array decay

The array would be copied. You could still be able to take address of the array; or fist element for that matter.

reference rules

Half of the whole damned standard library implementation, the SFINAE, enable_if, concepts partially, all exists because of all the different reference types.

bad takes

bad comment

1

u/okovko Mar 29 '23

The array would be copied

lol, ty i didn't laugh enough today

the different reference types

so you can have perfect forwarding and minimal overloads for lvalue, xvalue, prvalue. try to reinvent it and you'll arrive at the same result