Hacker News new | ask | show | jobs
by pfraze 4981 days ago
That's basically what the promises spec for Javascript gives you.
1 comments

Exactly. The promises spec defines the Promise monad. The problem is that JavaScript doesn't have monadic syntax, which would make the code a lot more readable.