-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolver API should hide resolve() #55
Comments
The semantics of I'm not sure what that buys us. There is active disagreement about weather or not programmers should use |
When would a user ever need to invoke |
@cowwoc the semantics are different -
|
So you're saying fulfill() causes the promise to override any values returned by subsequent chains? Why/when when you want to do that? |
I'd like to propose the following design change:
Invoking
accept
from aResolver
invokes a hidden methodresolve
if there are any chainedResolvers
, otherwise it invokes another hidden methodfinalAccept
.This way users would only have to be aware of
accept
andreject
. Currently we require users to invokeresolve
which I found to be very confusing. I shouldn't have to invoke different methods depending on whether chaining is taking place or not; that should be an implementation design.The text was updated successfully, but these errors were encountered: