Re:Callbacks are imperative, promises are functional
by T-R on Monday April 01, 2013 @03:51AM
(#5471969)
The difference is that the first works with all of the native list functions, as well as all of those in e.g., underscore, without any extra work. The latter doesn't. Now, the latter certainly offers some other features, but my point was that, in specifically building an HTTP server, it's been my experience that those features aren't of as much use as being able to use the native list functions to, say, map a log function onto the list of functions, or reduce while halting execution under particular conditions.
[ Parent
| on HN ]
There are no comments on this comment yet.