0.1.2 • Published 11 years ago
backcall v0.1.2
node-backcall
Turns fn(..., cb) into fn(cb, ...).
Why?
Here's why:
someFn = (cb) ->
async.rwaterfall cb, [
(cb) -> fn1 cb
(cb) -> fn2 cb
]is prettier than
someFn = (cb) ->
async.waterfall [
(cb) -> fn1 cb
(cb) -> fn2 cb
], cbfor methods that take callbacks.
It's minor, but it's a nuisance.