3 ms·
Objective-c++ is used extensively, it’s just not covered in most discussions of objc because then you’re having to explain the exciting interaction between it o
by olliej 3y ago
Objective-c++ is used extensively, it’s just not covered in most discussions of objc because then you’re having to explain the exciting interaction between it objc object semantics and C++’s. Eg the complexity skyrockets.
The biggest public user of it would likely be webkit, but plenty of closed software both in and outside of apple use it.
But the reality is that it is at this point primarily a bridging language. Post the introduction of ARC one of the biggest win/reason to use it over raw objc went away.
But it’s still tremendously valuable as a way to have a nice API that is also ABI stable in a way that isn’t the C and C++ misery pit. Of course now swift has the same ABI stability support as well as a slew of other improvements so there seems ever less reason to write new objc.