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
18
u/Raknarg Jul 25 '24
sure but the contraints tend to be more explicit. Usually if you "need something capable of this thing" its documented with SFINAE or concepts, whereas in C you just hope the user uses your thing correctly. And it makes those things much more traceable, and language servers/intellisense/whatever youre using can usually catch these problems early whereas they don't really with macros.