I think monad patterns can work pretty well in python, but my experience is nobody uses them.
I wrote a small utility library for exactly that kind of "railway oriented programming" if you're curious about what it'd look like in python: https://github.com/benrutter/ufo-tools
Comments
I think monad patterns can work pretty well in python, but my experience is nobody uses them.
I wrote a small utility library for exactly that kind of "railway oriented programming" if you're curious about what it'd look like in python: https://github.com/benrutter/ufo-tools
Without do-notation (computation expressions in F#) it’s hard to see how this can scale.
you might be able to wrestle yield to do your bidding.