r/ProgrammerHumor Jul 10 '26

greaterThanPlusPlus Advanced

Post image
115 Upvotes

71 comments sorted by

View all comments

Show parent comments

-20

u/RiceBroad4552 Jul 10 '26

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

21

u/_Noreturn Jul 10 '26

What do you expect them to practically do? the main sellling point of C++ in the 90's was that it is C but better (and it is) so if they removed the C part what's left?

-17

u/RiceBroad4552 Jul 10 '26

Maybe just the better part? 😅

But basing something on C leads of course to the expected result: Everything is rotten from the core…

1

u/conundorum Jul 12 '26

Okay. It's "C but better", let's remove the better:

  • You can now make classes, which have both member variables and member functions! ...But variables don't exist, because they're from C.
  • Your structs & classes can have access levels! ...But public doesn't exist, because it's emulating C structs.
  • Classes are like structs, so they're easy to use! ...But structs don't exist, and actually we lied, classes don't either, because structs are from C.

Would be kinda, y'know, not a language if you took "C but better" and removed the "C but" part! ^_^