HN user

a__remie

3 karma

Call me back Node

Posts0
Comments3
View on HN
No posts found.

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.

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 spot, keep running.