Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mad-mad-beaver
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
mad-mad-beaver
11y ago
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 fundamenta
2.
▲
by
mad-mad-beaver
11y ago
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 ;)
3.
▲
by
mad-mad-beaver
11y ago
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&#x