r/ProgrammerAnimemes • • Jun 20 '22

JavaScript: *gets annihilated*

Post image
1.0k Upvotes

43 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Jun 20 '22 edited Jun 20 '22

One of the issues with C++ is how much baggage it has accumulated in terms of what are or aren't good practices that aren't enforced by the compiler because of backward compatibility reasons and the cases where such usage is legitimate.

For example, you really shouldn't code C++ like C (they are different languages), but if you want to make a C-callable shim/wrapper, you have to be able to compile that shim from a C++ compiler. So the compiler has to accept practically anything you can do with C.

That makes for a lot of stuff a beginner has to learn all at once.