4 ms·
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.
by kubb 5mo 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.
- lmm 5mo agoAsync functions are an ad hoc, informally-specified, bug-ridden, slow implementation of half of monad support.
- moomin 5mo agoMaking await flatten promises was kind of questionable. But that’s my main beef.
- tikotus 5mo agoC# (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.