[swift-evolution] [Pitch] Typed throws
adrian.zubarev at devandartist.com
Fri Feb 17 13:18:16 CST 2017
That’s what I thought too. That’s also the case I showed a simple example how we could solve the giant list with a typealias even if the pipe | operator would be exclusive for anything that conforms to Error.
Sent with Airmail
Am 17. Februar 2017 um 20:16:30, Anton Zhilin (antonyzhilin at gmail.com) schrieb:
2017-02-17 22:12 GMT+03:00 Adrian Zubarev via swift-evolution <swift-evolution at swift.org>:
Is the throwing type always a protocol? In your example it is, but is this going to be always the case?
I thought it was going to be any one subtype of
Error, be it a struct, an enum, or a protocol existential, or
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution