3 ms·
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
by dwenzek 12y ago
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://news.ycombinator.com/item?id=7887134 https://news.ycombinator.com/item?id=7887134