[swift-evolution] [Pitch] Typed throws
Tino Heth
2th at gmx.de
Sat Feb 18 05:59:04 CST 2017
> Wouldn’t that mean that you couldn’t use your Swift library in Objective-C anymore, at least the error type as an NSError?
>
That's the meaning of "break with Objective-C" here ;-) — but note that I wrote about allowing to do so, not forcing:
Now, we can only declare that something is thrown, and as interoperability is quite important, we have to assume it is needed.
As soon as you declare exactly what will be thrown, it should be up to you to decide if you need NSError-bridging.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170218/8eef37a0/attachment.html>
More information about the swift-evolution
mailing list