Comment by swiftcoder

3 months ago

This has reawakened the nightmares about Objective-C++

How so? Having written Objective-C and C++ separately but never written Objective-C++ before, I don't understand what's the hate it. Some of my favorite Mac apps from a decade ago were written in Objective-C++. I think Chrome still has some parts in Objective-C++.

  • I don't think anyone who could help it wrote software in Objective-C++ directly.

    It was an unholy welding of the two languages that mostly let Objective-C apps adopt some libraries from the broader C++ ecosystem. Plus the occasional cross-platform C++ codebase used it as a thin shim to provide a Cocoa-based UI...

Objective C++ was great.

Rename a file to .mm and start using Objective C APIs. Very good interop