4 ms·
It doesn't. You can access all Objective-C features from C, it's just a bit of a pain. There is a C interface to the Objective-C runtime.
by DagAgren 6y ago
It doesn't. You can access all Objective-C features from C, it's just a bit of a pain. There is a C interface to the Objective-C runtime.
- gridlockd 6y agoThey're still Objective-C APIs. There's a C interface to the Java runtime as well. The point is that it shouldn't be a pain to use these interfaces from C, concepts from ObjC/Java/C++ shouldn't leak into them.
- DagAgren 6y agoThat would mean either implementing your entire API twice, or adding layers of pointless indirection, for extremely little gain. It is just not reasonable.
- gridlockd 6y agoYou're assuming that people want to program applications in "platform languages" like Objective-C or Swift or Java or Kotlin. That's generally not true. They want to use their language of choice. That's why C interfaces are the reasonable choice, you can interface with them conveniently from pretty much any language and if you want a more idiomatic "pointless layer of indirection", you can build it.