6 ms·
C is C++ minus object-oriented features, increased type-safety, template meta-programming, lambdas, and many more features.
by hellofunk 8y ago
C is C++ minus object-oriented features, increased type-safety, template meta-programming, lambdas, and many more features.
- gray_-_wolf 8y agoNot true, C has features missing from C++.
- k__ 8y agoWhich?
- FartyMcFarter 8y agohttps://www.quora.com/What-features-are-present-in-C-but-not-available-in-C++/answer/Sergey-Zubkov-1 https://www.quora.com/What-features-are-present-in-C-but-not...
- makapuf 8y agoThere is a more complete answer with a link but quickly : restrict, designated initializers, generic macros...
- madeuptempacct 8y agoSo, are there situations where one would use C over C++? I don't know C++, and only learned C while catching up on my fundamentals.
- hossbeast 8y agoRight, the useless cruft that makes your program impossible to read, let alone reason about
- hellofunk 8y agoHa! The lambdas and tools surrounding them in C++11 and later have vastly improved the ability to make programs much easier to read and reason about.
- jcelerier 8y agoyes, I guess all those C++ programs don't exist and C++ programmers don't actually read or write any programs.
- maccard 8y agoHardly. Compare std sort to qsort and tell me that it's superior.
- goatlover 8y agoIs this the cruft that gets reinvented in C whenever the project grows complex enough? Something like: any sufficiently complicated C program contains an ad-hoc, informally-specified, bug-ridden, slow implementation of half of C++'s features.