Oh, yeah, it replaces that cumbersome .then(() => doSome(thing)) with bare doSome(thing) and .catch(err => doOtherThing(err)) with catch (err) {doOtherThing(err)} A breakthrough indeed! I just don't see how's that…
Just use promesa/all then catch :) Moreover, it has funcool/cats bindings, so you can use promises in mlet and alet macros if you are into monad thing ;)
How is "never-ending-chain-of-thens" fundamentally different from async/await? It's still the very same code but with different (and somewhat disconcerting) sugar. I've been using promises long before ES7, and it's…
Oh, yeah, it replaces that cumbersome .then(() => doSome(thing)) with bare doSome(thing) and .catch(err => doOtherThing(err)) with catch (err) {doOtherThing(err)} A breakthrough indeed! I just don't see how's that…
Just use promesa/all then catch :) Moreover, it has funcool/cats bindings, so you can use promises in mlet and alet macros if you are into monad thing ;)
How is "never-ending-chain-of-thens" fundamentally different from async/await? It's still the very same code but with different (and somewhat disconcerting) sugar. I've been using promises long before ES7, and it's…