3 ms·
I think monads are especially useful when the whole eco-system is build around it. Using promises with callback APIs gets ugly quickly. Using results with exc
by k__ 6y ago
I think monads are especially useful when the whole eco-system is build around it.
Using promises with callback APIs gets ugly quickly.
Using results with exception APIs also isnt much fun.
Rust shines here because it's the default way.