[swift-evolution] [Pitch] Guard/Catch
jtbandes at gmail.com
Wed Jul 5 12:50:39 CDT 2017
Some prior, probably not as well thought-through, discussion on this topic:
On Wed, Jul 5, 2017 at 10:40 AM Soroush Khanlou via swift-evolution <
swift-evolution at swift.org> wrote:
> I’d like to propose a guard/catch construct to the language. It would
> allow code to use throwing functions and handle errors fully, without
> straying from a happy path. do/catch can be a bit heavy-handed sometimes,
> and it would be nice to be able to handle throwing functions without
> committing to all the nesting and ceremony of do/catch.
> Full proposal, which discusses all the corner cases and alternatives:
> Looking forward to feedback!
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution