3 ms·
There was an interesting tweet recently on doing this with a computation expression. https://twitter.com/ijrussell/status/1691752042539237413?s=20 https://twit
by xupybd 3y ago
There was an interesting tweet recently on doing this with a computation expression.
https://twitter.com/ijrussell/status/1691752042539237413?s=20 https://twitter.com/ijrussell/status/1691752042539237413?s=2...
- FrustratedMonky 3y agoYes. Think a lot of people think this is just using <Option>'s. But really in Fsharp, you can build your own 'Monad's called Computation Expressions, and for error handling can pass along different information about the errors. It doesn't have to be "Only" an <Option>, it can be <MySpecialOption>.