3 ms·
It's a very well written article. I'm just a bit surprised there is no mention of the origins of this paradigm as it originated in functional languages (Maybe m
by hannofcart 8y ago
It's a very well written article. I'm just a bit surprised there is no mention of the origins of this paradigm as it originated in functional languages (Maybe monad in Haskell).
- dwaite 8y agoI think it’s closer to Either
- KirinDave 8y agoWell, Either is a monad. Evolution of this style to avoid divergent nesting depths (The Codoken: http://i.imgur.com/BtjZedW.jpg http://i.imgur.com/BtjZedW.jpg) is a monad, even in the "railway" style of F#.
- wool_gather 8y agoThis isn't Maybe. Optional in Swift is Maybe.
- hota_mazi 8y agoNo, `Result` is more like the `Either` monad.