[swift-evolution] [Pre-Draft] Nil-coalescing and errors

Erica Sadun erica at ericasadun.com
Wed Apr 6 10:10:08 CDT 2016

> On Apr 6, 2016, at 9:00 AM, Sean Heber <sean at fifthace.com> wrote:
> Interesting, but I’m unsure if all of it is significantly better than just using the guard that is effectively inside of the operator/func that is being proposed:
> guard let value = Int("NotANumber") else { throw InitializerError.invalidString }

That is a pretty damn compelling argument.

-- E

More information about the swift-evolution mailing list