Skip to content

Comment on The Ultimate Guide to Error Handling in Pythonparent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.