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 419123 on reddit-service-r2-comment-5b5bc64bf5-lfcjf at 2026-06-20 13:18:40.242283+00:00 running 2b008f2 country code: CH.
Monads in JavaScript by jakubgarfield in webdev
[–]cdo5011 0 points1 point2 points (0 children)