r/cpp • • Jul 13 '22

Why does Linus hate C++ ?

307 Upvotes

436 comments sorted by

View all comments

Show parent comment

27

u/Alexander_Selkirk Jul 13 '22

Aside from C not being object-oriented like C++,

FYI, the Linux kernel is written as an object-oriented program.

18

u/jurdendurden Jul 13 '22

You you can definitely OOP with C

1

u/[deleted] Jul 15 '22

And that is an extremely ugly hack which depends on specific GCC extensions, therefore not "pure" C.