r/cpp • • Jul 13 '22

Why does Linus hate C++ ?

308 Upvotes

436 comments sorted by

View all comments

316

u/[deleted] Jul 13 '22

He tried it before C++98, and back then C++ compilers were quite a mess.

21

u/accurrent Jul 13 '22

To this day, Google doesn't use C++ exceptions because early compiler implementations were buggy.

-4

u/[deleted] Jul 14 '22

I use exceptions in any language that has them, but I don’t use them in C++. Without garbage collection it’s too easy to have memory leaks.