4 ms·
iOS still exists.
by DagAgren 6y ago
iOS still exists.
- gridlockd 6y agoYes, but iOS requires you to use Objective-C (or Swift) just like Android requires you to use Java. I know the comment put Objective-C right next to C and C++, but it doesn't belong there. All platforms should have (at least) C interfaces, not requiring C++ or even Objective-C.
- DagAgren 6y agoIt 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.