Open torstenlehmann opened 7 years ago
Kind of bumping this. It would make sense for the map/flatMap functions to be rethrowing and in the case of an error thrown, to make it return a failure
. Not sure how typed errors would affect this, but it would also behave more like the Swift STL handles its higher order functions.
Thanks for the work on this type. I try to replace Swift
throws
withResult
in one of my projects, but on every higher order function I'm stopped. The project depends on the behavior ofmap
and that it'stransform
function can throw. So I wrote a map that can do this withResult
. Here is my implementation (not that functional):So without a
Result
version of all these standard library functions that can throw I doubt that I can use theResult
type to it's full extend. Is there some library that can help me out here?