Promises Consensus

Mark S. Miller erights at google.com
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 gmail.com>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 mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>


-- 
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130801/f999f0dd/attachment.html>


More information about the es-discuss mailing list