Promises vs Streams

joe joeedh at gmail.com
Sat Mar 28 16:02:31 UTC 2015


Maybe the confusion stems from how Promises were used in ES5?  ES5 doesn't
support generators, so people ended up adding a sort of psuedo-generator
API to their promise APIs, but in reality the concepts solve different
problems?  FYI, python seems to use promises and event streams together in
its async libraries.

Joe

On Sat, Mar 28, 2015 at 8:20 AM, Anne van Kesteren <annevk at annevk.nl> wrote:

> On Sat, Mar 28, 2015 at 1:14 PM, Boopathi Rajaa <legend.raju at gmail.com>
> wrote:
> > Why do we have both?
>
> Why do we have both values and arrays, not just the latter?
>
>
> --
> https://annevankesteren.nl/
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150328/f7411e1e/attachment.html>


More information about the es-discuss mailing list