.flatMap(_.wrapCallback(one))
.flatMap(_.wrapCallback(two))
...
or .then(Promise.promisifyAll(one))
.then(Promise.promisifyAll(two))
...
are noise making the signal difficult to read. It should come down to nothing more than one | two
plus the error handling clause. That's not JavaScript but you got the idea. Syntax is important. I still have bad dreams about arrays() hell in an app written by a customer with CakePHP 1 (a Rails clone with an approach that didn't suit PHP well). I'll skip over the $this-> mess.I'm not much into asynchronous languages. Is there any examples around with a built in and slim syntax for concatenating callbacks? Thanks.