3 ms·
Not just interoperability with Objective C but with C (full) and C++ (increasingly better but not full) as well. Swift is also interoperable with different ver
by inkyoto 4mo ago
Not just interoperability with Objective C but with C (full) and C++ (increasingly better but not full) as well.
Swift is also interoperable with different versions of itself courtesy of the Swift stable ABI (Application Binary Interface)[0], which they invested a significant amount of time into at the expense of adding other new features to the language, which have come along later.
Rust offers a different approach: recompile everything and static linking.
[0] https://faultlore.com/blah/swift-abi/ https://faultlore.com/blah/swift-abi/
- pjmlp 4mo agoC compatibility comes via Objective-C, because contrary to C++, Objective-C extends C, instead of being based on a C subset. You missed Java as well.