[swift-evolution] [Pitch] Typed throws

David Sweeris davesweeris at mac.com
Fri Feb 17 13:18:45 CST 2017


> On Feb 17, 2017, at 11:12 AM, Adrian Zubarev via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Is the throwing type always a protocol? In your example it is, but is this going to be always the case?
> 
I think right now, there’s a bit of compiler magic in that you can only throw something that conforms to `Error`.

- Dave Sweeris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170217/fbf5a9f5/attachment.html>


More information about the swift-evolution mailing list