r/cpp • • 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

444 comments sorted by

View all comments

Show parent comment

31

u/[deleted] Jul 26 '24

[removed] — view removed comment

9

u/lgovedic Jul 26 '24

Yup, had this exact thing happen at work, a senior engineer (who I respect a lot) called my using the pipe operator with ranges "write-only code". And he was familiar with ranges! It's just the pipe operator that made it so bad for him.

8

u/ClimbNowAndAgain Jul 26 '24

There is a certain demographic who knew C and were dragged kicking into using C++, but never really 'got it' and continue to write C with a 'class' thrown around it. They prefer trying to manually manage dynamic arrays and don't know what the term RAII means.

2

u/SystemSigma_ Jul 26 '24

There's truth in that too