other-languages

2021-10-04T09:44:01.017900Z

I’m trying out an idea that I would love to get your feedback on: it is a somewhat sloppy version of Railway Oriented Programming, in Python. I’m planning to write a blog post about this also. Here’s the repo, with docs: https://github.com/DavidVujic/pythonic-railway#a-pythonic-railway

2021-10-05T07:34:16.020600Z

toolz looks like 🤩 for a clojure developer coding python. Very cool 😄

2021-10-04T13:06:20.018100Z

have you seen: https://github.com/pytoolz/toolz ?

2021-10-04T13:20:41.018400Z

Very cool, thank you! I’ll add toolz to the resources section.

emccue 2021-10-04T14:40:31.019100Z

Aren't exceptions already "railway oriented programming" in the way you describe it?

emccue 2021-10-04T14:42:22.019300Z

Specifically, there isn't any handling of this except at the top level

emccue 2021-10-04T14:42:39.019500Z

so the complaint about try except clutter seems misplaced

2021-10-04T14:55:39.019700Z

You’re right @emccue - try-catch is a two rail system already 😄 I’ll try to rephrase and rethink this.

2021-10-04T15:07:43.019900Z

I have rewritten the “why”-part a bit: https://github.com/DavidVujic/pythonic-railway#why-railways