@Ian L. for strictly polyfill there are two options, first is `es6-promise`: https://github.com/jakearchibald/es6-promise and second is `es6-shim` https://github.com/paulmillr/es6-shim which includes now Promise polyfill.
Still, I'd advise to hold your horses, and stick with one of the popular JS libraries for now. Thing is, that promises as specified by ES6, are not really complete yet, and come with issues. Firstly, by design they swallow unhandled exceptions (your application may crash and you'll be left without a hint). In majority of JS implementations, this is solved with `promise.done`. Other issue is artificial asynchronicity, or to put it other way, lack of synchronous access to resolved value. This one however is not largely perceived as an issue, and most JS libs live with that, so there's a big chance it won't be issue for you as well. On Friday, February 14, 2014 7:36:41 PM UTC+1, Ian L. wrote: > > I'd like to use more promises in our codebase, but I'm not sure which > library on which we should standardize. > Promises/A+ is the spec that's coming in ECMAScript 6, right? I'd like to > use a library that's mostly a polyfill for whatever's going to be the > standard eventually, so which module is the closest? Or should I use a more > mature or full-featured library like Q knowing that the concepts are > basically the same and I won't have a terrible experience if in the future > I need to port code to the new standard? > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
