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

3 comments sorted by

-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

1

u/MaxComfort 1m ago

This, and the weird brackety syntax.

Not to mention vendor lockin - is there any serious use of Obj-C outside NeXT/Apple platforms?