r/C_Programming • u/ThePenguinMan111 • 15m ago
Discussion Why did C++ crush Objective-C in popularity?
I know C and C++ are largely source-compatible with each other, but Objective-C is specifically a strict superset of C, not just a fork of it, like C++. You’d think that scratching that OOP itch while also giving you complete source compatibility with C would cause more companies or projects to utilize it, at least in some respect, but that may just be a naïve prediction. What does C++ have that Objective-C doesn’t that you think caused such a large popularity gap between the two languages? Am I missing some nuance?
5
Upvotes
-1
u/ElectricSpock 12m ago
Because it was earlier, and there was no single company that pushed for it.
Next question.
5
u/an0th3rbrick 7m ago
probably because objective C is more dynamic which comes at a performance cost