> On Jun 7, 2016, at 12:07 PM, Tim Vermeulen via swift-evolution 
> <swift-evolution@swift.org> wrote:
> 
>> True, but the cost of being able to restore the original ordering, when
>> that restoration may not be needed at all, is prohibitive.
> 
> What about simply restoring the elements, in no particular order? This seems 
> like an easy enough task, and I don’t think it requires the sorting algorithm 
> to allocate any extra memory (in case no error is thrown, at least).

What is the example that motivates this?  Is there a widely used comparison 
function that throws?

-Chris
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to