Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
a__remie
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
a__remie
13y ago
finally, welcome in the 21st century.
2.
▲
by
a__remie
13y ago
Nesting is not the problem, you see what you're doing (when you perform an async io request). And you still have the "if (e) return cb(e)" line... And on top of that, it does not look better.
3.
▲
by
a__remie
13y ago
cbs - cbSucces cbe - cbError replaces all the "if (e) return cb(e)" lines with cbe when you call the async function. A whole abstraction over js just because of this, running away from the problem...instead of solving it on the sp