Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Promise, Promise/A and Promise/A+

I've read the Promise/A+ specification, but as far as I understand there are also such things as Promise/A and Promise. What is the difference between all of them? Are Promise and Promise/A specifications as well? If so, what's the difference? Sorry if the question is silly as I'm primary backend developer.

Thanks in advance!

like image 545
Dmitry Senkovich Avatar asked Sep 30 '17 20:09

Dmitry Senkovich


1 Answers

Is Promise a specification as well?

No. That's just a term with a context-dependent meaning. See for example What are the differences between Deferred, Promise and Future in JavaScript? or the Wikipedia entry on the topic for possible definitions.

Is Promise/A a specification as well?

Yes: http://wiki.commonjs.org/wiki/Promises/A

Why is it named A? Because there were other approaches as well.

I've read the Promise/A+ specification. What is the difference between them?

You must have missed https://promisesaplus.com/differences-from-promises-a.

like image 174
Bergi Avatar answered Oct 03 '22 07:10

Bergi