> On Dec 20, 2015, at 12:35 AM, Brent Royal-Gordon <[email protected]> 
> wrote:
> 
> I don't know if it can actually be private, but it should be invisible to 
> developers, and considered an implementation detail. It might also make sense 
> to retrieve the `userInfo` from `swiftError` on demand—the exact 
> implementation isn't very important here.

Whatever the solution is, it shouldn’t be invisible to developers. We need a 
good way to get non-NSError ErrorTypes to turn into NSErrors that have decently 
propagated userInfo dictionaries, so that they can be presented to the user in 
a form that isn’t just a cryptic “<domain> error <code>”.

Charles

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to