Re:Callbacks are imperative, promises are functional
by tel on Sunday March 31, 2013 @05:41PM
(#5470290)
Some pseudocode
Wrapping the pool handling into withConn, and the failure modes into query. This PromiseDB monad would be fairly trivial to produce in Haskell. It's also fairly easy to write it point-free as
[ Parent
| on HN ]
There are no comments on this comment yet.