> On May 6, 2016, at 2:04 AM, Adrian Zubarev via swift-evolution > <[email protected]> wrote: > > The ugly NSError pattern could be rewritten and migrated to: > > do { > try something() > } catch let error { > handle(error `bridge` NSError) > } > > Is such a change complicated, what do you think?
I’ve made a pitch, "Consistent bridging for NSErrors at the language boundary”, which I believe would not only eliminate the need for “as” to contain bridging magic, but is also much less ugly than either the current pattern or the example above. https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160502/016618.html <https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20160502/016618.html> Charles
_______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
