Promises Consensus

Mark S. Miller erights at
Thu Aug 1 10:40:41 PDT 2013

On the input side of .then and .flatMap, no.
On the output side of both .then and .flatMap, depending on what you mean
by "branding", yes. If .flatMap's callback returns a non-promise the
promise it already returned gets rejected. If .then's callback returns a
non-promise, the promise it already returned accepts that non-promise.

On Thu, Aug 1, 2013 at 10:33 AM, Juan Ignacio Dopazo
<dopazo.juan at>wrote:

> If then() deep flattens, flatMap() only flattens one level and promises
> assimilate thenables, is branding really necessary?
> Juan
> _______________________________________________
> es-discuss mailing list
> es-discuss at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list