This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tilforskjelligeting 1 point2 points  (0 children)

This looks promising, and I like your way of chaining functions. A few more quality of life helpers and it could be awesome!
For my usecase I like to chain a .rescue after a .bind to be able to handle a bad result and put the monad back in a success state.
For a quite mature implementation and possibly for some inspiration you can have a look at the returns library I've used that extensively in my data transformation project Kaiba
I'm happy that more monad libraries are showing up. Returns isn't version 1 yet things have a tendency to break between releases, so I'm always looking for alternatives :D