Establish a new "official" pattern for error return in Swift
| Originator: | samdeane | ||
| Number: | rdar://17178587 | Date Originated: | 05-Jun-2014 09:42 AM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode6-Beta (6A215l) |
| Classification: | UI/Usability | Reproducible: | Always |
The NSError** pattern isn’t really appropriate in Swift. Using an enumeration where the Error case has an associated NSError seems like it might make sense. Whatever the actual answer, it would be good to have official guidance on how Apple will do this going forward, so that we can try to follow the same pattern.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!