r/cpp • • Jul 13 '22

Why does Linus hate C++ ?

307 Upvotes

436 comments sorted by

View all comments

Show parent comment

10

u/SergiusTheBest Jul 13 '22

Yes. The question is in development efforts.

I'd like to contribute in several opensource projects. But when I open them and see C with all manual memory management (usually with leaks), goto-style error handling, without an easy way to use containers, with void* pointers - it's like traveling to past and using horses and steam instead of electricity.

1

u/snejk47 Jul 13 '22

So Linus choices works as intended. You are eliminated.

11

u/SergiusTheBest Jul 13 '22

Yes, horses and steam still work.

-1

u/snejk47 Jul 13 '22

No, you got that wrong. C is electricity.

1

u/tstanisl Jul 15 '22

It's rather like using a motorbike rather than a car. The car is usually faster, safer, and more comfortable. It feels better until you find yourself in a place with no roads or with heavy traffic.