[swift-evolution] Remove Failable Initializers
James Campbell
james at supmenow.com
Mon Mar 7 12:54:24 CST 2016
So we could try to bridge `init?` from objective-c so they become `init()
throws` but perhaps a less disruptive solution is to only allow `init?` for
swift classes that inherit from @objc ? I can't see how it is possible to
let `init throw` bridge back to objective-c cleanly.
I have updated my proposal to explore both of these options.
*___________________________________*
*James⎥Head of Trolls*
*james at supmenow.com <james at supmenow.com>⎥supmenow.com <http://supmenow.com>*
*Sup*
*Runway East *
*10 Finsbury Square*
*London*
* EC2A 1AF *
On Mon, Mar 7, 2016 at 6:25 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On Mar 7, 2016, at 7:40 AM, James Campbell via swift-evolution <
> swift-evolution at swift.org> wrote:
>
> This is my draft proposal.
>
>
> https://github.com/jcampbell05/swift-evolution/blob/master/proposals/0045-remove-falliable-initilizer.md
>
> Let me know your thoughts.
>
>
> Please expand your proposal to include a description of the how importing
> ObjC types to Swift works.
>
> -Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160307/5b539a5b/attachment.html>
More information about the swift-evolution
mailing list