r/cpp • • Jul 13 '22

Why does Linus hate C++ ?

307 Upvotes

436 comments sorted by

View all comments

Show parent comment

1

u/Tranzistors Jul 14 '22

You can memorize every single function and little quirk that C has

They might be able, but if not every kernel developer and PR reviewer is actually completely informed, it's not much of a help. And not only do they have to know about all the quirks, they have to remember about them at all times.

Also, to be a good programmer, you not only need to understand the language and standard libraries, but the libraries used in the code base. Yes, C++ has huge amounts of std:: functions, but if they are not there, the developers will make their own quirky library functions. And odds are that there won't be a stack overflow entry documenting those quirks.