[swift-evolution] Proposal: An Either Type in the STL
glessard at tffenterprises.com
Wed Dec 9 17:45:47 CST 2015
There is probably a greater need for a non-agnostic Result monad type (with descriptive cases .Value and .Error) for manual error propagation. If it’s not agnostic then the happy and unhappy paths can be better optimized.
Such a type was proposed but not designed in <https://github.com/apple/swift/blob/master/docs/ErrorHandling.rst#manual-propagation-and-manipulation-of-errors>. Was it abandoned or simply left for later?
(There are several implementations available on github, heh)
More information about the swift-evolution