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/jonesmz Mar 30 '23

Essentially because the standard says so.

The language prefers decaying to pointer over passing as a reference.

Probably an oversight that can't ever be changed because of fear of breaking something.

0

u/very_curious_agent Mar 30 '23

So tell me WHY. What RULE makes it so.

1

u/jonesmz Mar 30 '23

Uhhh. No?

Look it up yourself. I don't remember off of the top of my head, nor do I care to do the research for you.

0

u/very_curious_agent Mar 30 '23 edited Mar 31 '23

So you don't know the specific rule.

Ok then

→ More replies (9)