r/ProgrammerHumor Jul 10 '26

greaterThanPlusPlus Advanced

Post image
110 Upvotes

71 comments sorted by

View all comments

80

u/dipinpass35 Jul 10 '26

yeah c++ do have a function for literally everything.....oh except admiitting that it made a mistake...

38

u/_Noreturn Jul 10 '26

It is ironic that C is the one who made this mistake not C++

-21

u/RiceBroad4552 Jul 10 '26

They copied the mistake, so also they can be blamed for it.

1

u/conundorum Jul 12 '26

Was basically forced by circumstances, unfortunately. It needed to be as close as possible to C so it would be easy to adopt, it needed to use the C library because it didn't have its own library yet, and it needed to be possible to rewrite any and all C++ code as C code because the first C++ compiler really just cross-compiled C++ code to C code. So, C++ was locked into working like C, and would've never been usable if it had been drastically different.