DEV Community

loading...

Discussion on: Swift result types. Are they useless?

Collapse
_andys8 profile image
Andy • Edited

Not a swift programmer, but in general the advantage of the ADT Result is composability and the use of higher order functions (map, mapError, flatMap, fold), while the example is focussing only on unwrapping the datatype.