[swift-evolution] Marking sort and sorted with rethrows

Brent Royal-Gordon brent at architechies.com
Wed Jun 8 09:52:05 CDT 2016


> Is there a widely used comparison function that throws?

Any comparison function that examines external data related to the instance:

* Sorting filenames by the data in the corresponding files
* Instances backed by a database where actually loading the data could fail
* Etc.

-- 
Brent Royal-Gordon
Architechies



More information about the swift-evolution mailing list