Promises

Kevin Smith khs4473 at gmail.com
Fri Nov 9 11:40:19 PST 2012


> We have found this to be more expressive as well. Especially in ES5
> environments, where we can use Q's alias of `catch` instead of `fail`:
>
> p1.then(val => doStuff)
>      .catch(err => console.error(err));
>

Nice: +1


> However, I see a lot of value in "when" as a word still. "Then" makes
> sense when used as a method:
>
> let that = when(this).then(doThat);
>

+1 here as well.

- Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121109/ce8a681e/attachment.html>


More information about the es-discuss mailing list