Hacker News new | ask | show | jobs
by kubb 22 days ago
Every time this is posted, it’s worth reminding: async functions in JavaScript are the correct design, and the people who did it deserve praise.
3 comments

C# (and F# before it) got it (mostly) right. JS did a shallow copy of it, messing up some details, making it harder to use for certain things.
Making await flatten promises was kind of questionable. But that’s my main beef.
Async functions are an ad hoc, informally-specified, bug-ridden, slow implementation of half of monad support.