[swift-evolution] proposal for a even simpler guard.. => guard!
jordan_rose at apple.com
Mon May 2 18:38:47 CDT 2016
We have that; it’s just ‘!’. :-)
> On May 2, 2016, at 12:09, Dominik Pich via swift-evolution <swift-evolution at swift.org> wrote:
> often the guard statement is used to only unwrap optionals. multiple guards will cause a lot of ‘overhead’.
> also often if it doesn’t work. there is no easy way we can gracefully recover ;)
> so how about we do the same as with try/catch where you can use try! and have a guard!
> the guard! could just throw an exception …
> swift-evolution mailing list
> swift-evolution at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution