> On Nov 19, 2019, at 12:51 PM, Richard Charles via Cocoa-dev > <cocoa-dev@lists.apple.com> wrote: > > If I understand it correctly, there is a linkage between Swift and > Objective-C. Apple devised a way to call the Cocoa frameworks written in > Objective-C from the Swift language using the magic of the LLVM compiler.
The Swift compiler and runtime know how the Objective-C runtime works, so so Swift can treat Obj-C classes and objects as first-class citizens. > A great question would be is possible for Apple to pull the Objective-C rug > out from underneath the Cocoa frameworks leaving only a Swift implementation? Sure, since you can create Obj-C compatible classes in Swift simply by using the @objc annotation. However, rewriting a framework from scratch is always a perilous activity and not something to be done lightly. This may happen over time, but I wouldn't expect wholesale rewrites in the near future. —Jens _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com