Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

A related way of composing code is railway oriented programming already commented on HN (1)

Underneath there are monads, sure, but the author has deliberately chosen a more mechanical metaphor which may help those for whom monads sound too abstract.

The post focuses more on how to handle errors that asynchrony, but it shows well the key steps to lift a blue function into red ones and to compose these constructions.

(1) https://hackernews.hn/item?id=7887134



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: