3 ms·
The C only interface is an absolute necessity. Only C++ can properly interface with C++ while C can interface with the rest of the world. And system libraries a
by gmueckl 6y ago
The C only interface is an absolute necessity. Only C++ can properly interface with C++ while C can interface with the rest of the world. And system libraries are there for whole world to use. if the system interfaces were converted to C++, all applications need to be written in C++ as well. You can wrap some features in other languages, but definitely not all of them.
- pjmlp 6y agoRight, but in 10 years they surely would have the time to offer a type safe C++ API in addition, just like in other platforms. Instead, they have been postponing it since NDK was introduced in Android 2.0 until after the introduction of native packages, which will only arrive with Android 11. There are open tickets related to it.