[swift-evolution] Amendment to SE-0112: Default values for errorDomain and errorCode

Douglas Gregor dgregor at apple.com
Fri Sep 2 13:33:38 CDT 2016


> On Sep 2, 2016, at 5:59 AM, Tino Heth via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Why not simply add those default implementations to Error?
> I can't see the value of hiding read-only properties that are already there…

Domain, code, and user-info are useful for Cocoa interoperability but aren’t otherwise necessary in Swift, which captures that information more directly in the (concrete) error types that conform to Error.

	- Doug



More information about the swift-evolution mailing list