|
|
|
|
|
by shados
3352 days ago
|
|
async/await is still based on promises, and promises are a naive/simplistic answer to the problem. It works fine for simple cases, but those are cases that were simple to begin with (Ok, maybe they would not be fine with CPS, but async/await is just thin sugar over promises). To really solve the async problem, you need either Observables or monadic constructs. The former is much more mainstream and mature in the JS world right now. It's not as cute as async/await and you'll be typing more functions, but it really solves the problem altogether. |
|