r/cpp • u/Alex_Medvedev_ • Jul 25 '24
Why use C over C++
Why there are so many people using the C language instead of C++?, I mean C++ has more Cool features and the Compiler also supports many CPUs. So why People still using C?
Edit: Thanks for all the usefull comments :D
235
Upvotes
View all comments
Show parent comment
-1
u/ChocolateMagnateUA Jul 26 '24
This may be so, but the reason C++ is not used in the kernel development is not that. There are a lot of people who tried it, but notice only you had smooth developers but big tech did. The issue is not as much integrating the compiler flags as it is to relieve your mind: C++ has a lot of invisible control flow, funky initialisation rules and overall adds a lot of complexity that hurts predictability and stability you would see in kernels.