r/cpp_questions • u/kyan100 • Sep 13 '24
OPEN Why Linux community hates C++ so much?
It seems like they have an extreme disliking towards C++. Especially the kernel developers. Linus has even said he doesn't allow C++ in kernel just to keep C++ programmers away. Which sounds very weird because C++ seem to be used in all kinds of complicated systems, and they are fine.
175
Upvotes
2
u/tyler1128 Sep 14 '24
Yeah, you can always manually implement anything, the big difference is that you have full control. Just throw a function pointer into a struct in C and you have basically the same thing as a class, just less conveniently. You can write your own vtable which is how inheritence works in C++. Just look at GDK, they made a full object oriented system with features beyond what C++ supports in C. It also is horrible to work with through C.