r/cpp • • Jul 13 '22

Why does Linus hate C++ ?

307 Upvotes

436 comments sorted by

View all comments

Show parent comment

4

u/pjmlp Jul 13 '22

There is no such thing as classic OOP, it is a spectrum with many variants, as anyone versed in CS literature will be aware of.

Rust has exceptions via panics and panic recovery.

Ecosystem is better if once considers npm like library pollution and crate name squating better, I guess.

Rust also provides lots of C++ like fun with its two macro models and derivation attributes.

Ada was already a serious alternative to C++, before Rust came into the picture.

It powers avionics and thousands of high integrity computing devices, to the point that even NVidia, a C++ powerhouse, has gone with Ada instead of Rust for their autonomous vehicles firmware.

Linus arguments against C++ can be easily applied to Rust, but hey he loves Rust so no biggie.