Re: [swift-evolution] [Pitch] Consistent bridging for NSErrors at the language boundary

2016-06-22 Thread Charles Srstka via swift-evolution
> On Jun 22, 2016, at 1:28 AM, Douglas Gregor wrote: > > On Jun 20, 2016, at 11:03 AM, Charles Srstka via swift-evolution > > wrote: > >> It was deferred until after Swift 3.0. >> >>

Re: [swift-evolution] [Pitch] Consistent bridging for NSErrors at the language boundary

2016-06-22 Thread Douglas Gregor via swift-evolution
Sent from my iPhone > On Jun 20, 2016, at 11:03 AM, Charles Srstka via swift-evolution > wrote: > > It was deferred until after Swift 3.0. > > https://github.com/apple/swift-evolution/pull/331 > > I plan to resubmit the proposal after Swift 3.0 comes out. Do you

Re: [swift-evolution] [Pitch] Consistent bridging for NSErrors at the language boundary

2016-06-20 Thread Charles Srstka via swift-evolution
It was deferred until after Swift 3.0. https://github.com/apple/swift-evolution/pull/331 I plan to resubmit the proposal after Swift 3.0 comes out. Do you have any improvements or suggestions for it? Charles > On Jun 20, 2016, at 12:51 PM,

Re: [swift-evolution] [Pitch] Consistent bridging for NSErrors at the language boundary

2016-06-20 Thread Shawn Erickson via swift-evolution
I am curious on the disposition of this discussion / proposal pitch. Has any additional effort taken place since this email thread tampered off? On Sat, May 14, 2016 at 2:40 AM Charles Srstka via swift-evolution < swift-evolution@swift.org> wrote: > On May 14, 2016, at 3:51 AM, Michael Peternell

Re: [swift-evolution] [Pitch] Consistent bridging for NSErrors at the language boundary

2016-05-14 Thread Charles Srstka via swift-evolution
> On May 14, 2016, at 3:51 AM, Michael Peternell > wrote: > > For interoperability, ErrorType and NSError should be toll-free-bridged, like > CFStringRef and NSString. Converting between them should be a no-op at > runtime. That would be technically infeasible

Re: [swift-evolution] [Pitch] Consistent bridging for NSErrors at the language boundary

2016-05-14 Thread Michael Peternell via swift-evolution
> Am 14.05.2016 um 09:31 schrieb Charles Srstka via swift-evolution > : > > I don’t think Cocoa is going away for a very, very long time. Even if it did, > you’d still need some consistent way to turn an ErrorType into something > human-readable, and currently we

Re: [swift-evolution] [Pitch] Consistent bridging for NSErrors at the language boundary

2016-05-14 Thread Charles Srstka via swift-evolution
> On May 14, 2016, at 1:45 AM, Jon Shier via swift-evolution > wrote: > > Charles: > Foundation error reporting is based on NSError, nothing else. In none > of my apps have I used my own NSError’s and in the few frameworks I use or > maintain, few use NSError,

Re: [swift-evolution] [Pitch] Consistent bridging for NSErrors at the language boundary

2016-05-14 Thread Jon Shier via swift-evolution
Charles: Foundation error reporting is based on NSError, nothing else. In none of my apps have I used my own NSError’s and in the few frameworks I use or maintain, few use NSError, and then only to avoid having to declare a custom error type, to make the API perhaps a bit more familiar

Re: [swift-evolution] [Pitch] Consistent bridging for NSErrors at the language boundary

2016-05-13 Thread Charles Srstka via swift-evolution
On May 14, 2016, at 12:19 AM, Jon Shier via swift-evolution wrote: > > Charles: > I appreciate the attempt to minimize a current pain point and I agree > on most of your analysis of the current NSError bridging but I think your > proposal is fundamentally

Re: [swift-evolution] [Pitch] Consistent bridging for NSErrors at the language boundary

2016-05-13 Thread Jon Shier via swift-evolution
Charles: I appreciate the attempt to minimize a current pain point and I agree on most of your analysis of the current NSError bridging but I think your proposal is fundamentally flawed. By forcing the core error type to have properties from NSError, you’re essentially finalizing what

Re: [swift-evolution] [Pitch] Consistent bridging for NSErrors at the language boundary

2016-05-12 Thread Charles Srstka via swift-evolution
> On May 6, 2016, at 10:16 PM, Charles Srstka wrote: > >> On May 5, 2016, at 2:06 PM, Charles Srstka via swift-evolution >> > wrote: >> >> I formerly posted a less-fleshed-out version of this in the

Re: [swift-evolution] [Pitch] Consistent bridging for NSErrors at the language boundary

2016-05-09 Thread Josh Parmenter via swift-evolution
I would support this - but I don’t feel like I have the experience yet to vet the proposal. I agree that the error handling is still something I feel like isn’t as smooth as it should be yet. I’ll try to take a longer look at this today. Thanks for the reminder. Best, Josh On May 9, 2016, at

Re: [swift-evolution] [Pitch] Consistent bridging for NSErrors at the language boundary

2016-05-09 Thread Charles Srstka via swift-evolution
Anyone have any thoughts, opinions, etc. on this? I find it kind of strange that I’ve received off-list feedback from within Apple, but so far it’s been generally ignored publicly on the list. Surely I’m not the only one who cares about the lack of parity between NSError and ErrorProtocol.

Re: [swift-evolution] [Pitch] Consistent bridging for NSErrors at the language boundary

2016-05-06 Thread Charles Srstka via swift-evolution
> On May 5, 2016, at 2:06 PM, Charles Srstka via swift-evolution > wrote: > > I formerly posted a less-fleshed-out version of this in the “Reducing > bridging magic” thread, but I thought this might warrant its own pitch. What > do you all think? > > MOTIVATION: >