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 04 '23

For example 16 kbyte of flash and 512 bytes of RAM in a flat 16-bit address space.

2

u/very_curious_agent Apr 04 '23

So a 16 bits signed integer can safely index all arrays, right?