[swift-evolution] [Pitch] Importing Objective-C 'id' as Swift 'Any'

Matthew Johnson matthew at anandabits.com
Sat Jul 2 07:42:28 CDT 2016



Sent from my iPad

> On Jul 2, 2016, at 12:21 AM, Chris Lattner via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 
>> On Jul 1, 2016, at 9:11 PM, David Waite via swift-evolution <swift-evolution at swift.org> wrote:
>> 
>> +1!
>> 
>> To me, it feels like the ambivalent dynamic casting is a temporary complexity, and that at some point in the future the need to expose legacy reference types like NSString outside swift-supplied or user-created bridging code will disappear completely.
>> 
>> This also will get rid of some of the rough edges in the various corelibs where value types cannot be supported because some platforms have a backing library written in Objective-C. Swiftier indeed!
>> 
>> Is this something you are pushing for in Swift 3? It seems appropriate but ambitious.
> 
> Yes, we’re trying for it.  “Appropriate but ambitious” is an accurate assessment - this is a huge stretch by the entire team but Swift 3 is the right time for it.

It looks that way for sure - I was surprised to see this so late in the cycle.  I really appreciate the team devoting the effort to try and get it done now.  It will make a big difference.

> 
> -Chris
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution



More information about the swift-evolution mailing list