[swift-evolution] [Idea] ObjectiveCBridgeable

Adrian Kashivskyy adrian.kashivskyy at me.com
Thu Mar 17 02:04:10 CDT 2016


I have a couple of ideas regarding the API of ObjectiveCBridgeable. My general thought is to improve upon the existing _ObjectiveCBridgeable protocol, not just make it public. The main idea would be to make it more "Swifty" by:

1. Removing inout arguments which look like implementation artifacts and converting them into return values
2. Converting static functions to initializers
3. Removing isBridgedToObjectiveC() method since it doesn't introduce any useful information

Doug, I know that some API design decisions were made due to runtime performance convenience, therefore I'd like your opinion on that before I go on with detailed design.


Pozdrawiam – Regards,
Adrian Kashivskyy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160317/f99fd09f/attachment.html>


More information about the swift-evolution mailing list