[swift-evolution] [Pitch] Typed throws

Anton Zhilin antonyzhilin at gmail.com
Fri Feb 17 12:45:25 CST 2017


Now this is on-topic, I guess.
Last time we stopped at John McCall’s syntax:

extension MyError: Error { ... }

func foo() throws(MyError) -> MyResult

It’s conservative and prevents visual ambiguity with extra parentheses.

If we (somewhat) agree on this, then submitting a proposal will be trivial.
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170217/b7a9854f/attachment.html>


More information about the swift-evolution mailing list