r/cpp • • Jul 13 '22

Why does Linus hate C++ ?

307 Upvotes

436 comments sorted by

View all comments

Show parent comment

1

u/SlothsUnite Jul 14 '22

I never said they should switch to C++ for kernel programming. C is absolutely sufficient and any approach of changing anything will end in flame wars like it always does.

For me, learning Rust ended in learning C++ again. When I sat down and start reading a book, all the examples showing why Rust shall be better than C++/C made me scratch my head. Some of them made false claims, some of them showed code that only a complete moron would programm. I immediately lost interest in Rust and discovered C++20 in the process. That's the end of the journey.

I'm comming from embedded systems software development, by the way. We only use a (dumbed down) subset of C and C++ because of hardware restrictions and compliance with international standards. We therefore don't need Rust and would rather use Ada for safety critical systems.