[swift-evolution] [Pitch] Guard/Catch
soroushkhanlou at gmail.com
Wed Jul 5 12:30:50 CDT 2017
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!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution