|
|
|
|
|
by akotulski
3016 days ago
|
|
Algebraic effects are new hotness in FP research. They are easier to compose than monads and they can express things like async/await naturally.
However, I'm not sure this approach works as intended with imperative programs where code will have (side) effects sprinkled everywhere. And there is no GC in rust |
|
I'm not sure how they'd give you a unified mechanism to implement these kinds of things, though. The Monad typeclass lets you implement new instances in libraries. Is there any work on defining effects like async/await in libraries? If so I imagine they'd still have to use something like continuations.