promises-aplus / constructor-spec

Discussion and drafts of a possible spec for creating and resolving promises
10 stars 4 forks source link

Terminology for polymorphic operations #11

Closed domenic closed 11 years ago

domenic commented 11 years ago

In #10, I'm starting to see the light of polymorphic resolve and reject. Still, that leaves us with a terminology and pedagogy issue.

Can anyone think of something better than the following?

This seems conceptually reasonable but pedagogically tricky:


I'm not sure this is OK, from a ecosystem and pedagogy point of view. Even if it's less theoretically pure, I still see the attraction of simple { fulfill, reject } methods that do allow promises-for-promises into the system.

briancavalier commented 11 years ago

This seems solvable, given that it was relatively simple to specify polymorphic throw using language parallel to polymorphic return over in promises-aplus/promises-spec#66. I don't have any answers right now, but I'll think about it.

domenic commented 11 years ago

No longer an issue now that polymorphic reject is dead. #9 or #16 are still a thing, though.