[swift-evolution] [Proposal draft] NSError bridging

Douglas Gregor dgregor at apple.com
Tue Jun 28 16:33:55 CDT 2016


> On Jun 27, 2016, at 1:58 PM, Charles Srstka via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Obviously, I’m in favor of this one. +1!
> 
> I think I did prefer the older name of CustomUserInfoError for the domain/code/userInfo protocol, rather than CustomNSError. This is just because I’d like to be able to do a global search through my project for “NSError” and have it turn up empty. Maybe a silly reason, I know. ;-)


I’m floating CustomNSError as the protocol name because I don’t feel that domain, core, or userInfo are fundamental to the Swift error model—they’re about exposing things specifically to NSError.

	- Doug



More information about the swift-evolution mailing list