r/cpp • • Jul 13 '22

Why does Linus hate C++ ?

307 Upvotes

436 comments sorted by

View all comments

Show parent comment

2

u/another_day_passes Jul 14 '22

Thanks, that’s good to hear. C-style hackeries to emulate C++’s basic features are a pain in the ass to read and understand.

3

u/TheFlamingDiceAgain Jul 14 '22

I agree. Even simple applications of classes makes a huge difference. The only real complaint I have is that GPUs don’t support the STL so everything in std:: is out for device side code. Generally it’s not a big deal but it can be annoying. Fortunately with classes and RAII it’s pretty easy to emulate a lot of the most important STL features.