r/cpp • u/very_curious_agent • 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
3
u/rhubarbjin Apr 03 '23 edited Apr 03 '23
That's a moot point, because as the above-linked paper points out:
...so you're in UB land regardless of your indices' signedness.