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

Brent Royal-Gordon brent at architechies.com
Fri Apr 8 04:59:28 CDT 2016

> I only wonder whether you really want to repeat Error() all over, possibly with `aString` etc. as argument.

`Error()`, no. `SpimsterKitError.invalidWicketField("a"`), yes, because even if `Int.init(_:)` threw *an* error, it wouldn't throw *your* error.

Brent Royal-Gordon

More information about the swift-evolution mailing list