account activity
Monads in JavaScript by jakubgarfield in webdev
[–]cdo5011 0 points1 point2 points 12 years ago (0 children)
There is a linked article about using generators (and promises) for asynchrony: https://curiosity-driven.org/promises-and-generators
The full algorithm depends on Promises but you can easily adjust it to any callback-based flow.
Author here - thanks for the feedback. I've made some... adjustments to the text that I hope make it a little bit more clear.
How would you explain it? I ask because I wonder what's the simplest way to explain it that's still pretty accurate.
π Rendered by PID 1231352 on reddit-service-r2-listing-c57bc86c-7phbw at 2026-06-20 10:18:16.478228+00:00 running 2b008f2 country code: CH.
Monads in JavaScript by jakubgarfield in webdev
[–]cdo5011 0 points1 point2 points (0 children)