<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Wrong list for language discussions, but <font face="Menlo" class="">domain/code/userInfo</font> aren't really Swifty.</div><div class="">It feels like we're tied down to a archaic construct just for the sake of consistency.</div><div class=""><br class=""></div><div class="">An error should answer the following questions:</div><div class=""><br class=""></div><div class="">* What went wrong?</div><div class="">* Where did it go wrong?</div><div class="">* What other information am I passing along about the circumstances of the error?</div><div class=""><br class=""></div><div class="">Which ties into my reason/context/errorInfo over domain/code/userInfo.</div><div class=""><br class=""></div><div class="">-- E, who has replaced -users with -evolution in the reply</div><div class=""><br class=""></div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Mar 5, 2016, at 11:02 PM, Dave Abrahams via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class="">on Sat Mar 05 2016, Erica Sadun <<a href="http://swift-users-at-swift.org" class="">swift-users-AT-swift.org</a>> wrote:<br class=""><br class=""><blockquote type="cite" class="">I'm hopping in here ridiculously late, but wasn't someone going to<br class="">propose a vanilla universal stdlib error type along the lines of<br class=""><br class="">struct Error: ErrorType {<br class=""> let reason: String<br class="">}<br class=""><br class="">(preferably with auto-captured location context<br class="">(<a href="http://ericasadun.com/2015/08/27/capturing-context-swiftlang/" class="">http://ericasadun.com/2015/08/27/capturing-context-swiftlang/</a><br class=""><<a href="http://ericasadun.com/2015/08/27/capturing-context-swiftlang/" class="">http://ericasadun.com/2015/08/27/capturing-context-swiftlang/</a>>) and a<br class="">custom mutable dictionary.)<br class=""></blockquote><br class="">I know some people around here really want us to standardize on NSError<br class="">for this purpose. If you have good reasons why we shouldn't, now would<br class="">be a good time to develop those arguments.<br class=""><br class="">-- <br class="">-Dave<br class=""><br class="">_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></div></blockquote></div><br class=""></body></html>