Where'd Promise#done go?

Mark S. Miller erights at google.com
Thu Jun 20 19:49:15 PDT 2013


Wasn't clear to me. But now that you mention it, it does fit. Unless I hear
to the contrary from Claus, I will respond on that basis.

Thanks for the clarification.


On Thu, Jun 20, 2013 at 7:06 PM, Tab Atkins Jr. <jackalmage at gmail.com>wrote:

> On Thu, Jun 20, 2013 at 7:03 PM, Mark S. Miller <erights at google.com>
> wrote:
> >>    x.a().then( t1p=>
> >>    y.b().then( t2p=>
> >>    let t3p = { then(cb): { t1p.then( t1=> t2p.then( t2=>
> >>                                        t1.c(t2).then( t3=> cb(t3) ) ) )
> };
> >>    ...' ) )
> >
> >
> > I can't yet respond to this because I don't understand your notation.
> What
> > does "{ then(cb): " mean?
>
> It seems pretty clear that's intended to be a concise method
> definition.  Claus accidentally added a colon, likely through force of
> habit.
>
> ~TJ
>



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


More information about the es-discuss mailing list