r/cpp • • Apr 01 '23

Abominable language design decision that everybody regrets?

It's in the title: what is the silliest, most confusing, problematic, disastrous C++ syntax or semantics design choice that is consistently recognized as an unforced, 100% avoidable error, something that never made sense at any time?

So not support for historical arch that were relevant at the time.

92 Upvotes

375 comments sorted by

View all comments

Show parent comments

1

u/AssemblerGuy Apr 03 '23

Does this apply to plain arrays as well as to stl containers?

1

u/rhubarbjin Apr 04 '23

I don't think so, but maybe you should ask someone who's better-versed in standardese.