-
Notifications
You must be signed in to change notification settings - Fork 164
Closed
Description
Brian Mckenna criticised current spec. He proposes to use FP approach to achieve much better modularity.
Suggest to read it, really good ideas with just three changes.
http://brianmckenna.org/blog/category_theory_promisesaplus
His proposal is to incorporate into spec three simple apis:
Promise.of(a)
will turn anything into promise.Promise#then(f)
should take one function, not two.Promise#onRejected(f)
: moveonRejected
to prototype instead of second arg.
edit: see promises-aplus/constructor-spec#24 for more discussion
mnn, TrebuhD, luthfianto, xgrommx, danny-andrews and 133 moreAbastro and leonyuluthfianto, mrvicadai, DrewDennison, andreis, shff and 19 moreAbastro and leonyuluthfianto, ancil26, roebuk, jxub, mrvicadai and 41 moreLuxcium, austindd, ivenmarquardt, nythrox, luthfianto and 8 morebrainkim, austindd, QuentinJanuel and Rudxain
Metadata
Metadata
Assignees
Labels
No labels