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
Alternate name for deferred.node() #55
Comments
To get the bikeshedding out of the way: I think generating it on each call (and thus being a function instead of a property) makes the most sense, as it seems very rare to want to get the callback more than once. I suppose for browsers that support getters we could add a |
Please feel free to shoot down this idea: |
I... kind of like it. Why isn't anyone using that term already? |
My proposal:
Having a long identifier here is a feature (not a bug ;-), because that method is so powerful and does so much. Then we want its name to be descriptive. |
Alex Raschmeyer recommends that we reconsider the name of the node callback function.
http://www.2ality.com/2012/04/expand-urls.html
For what it’s worth, the callback could always be the same object and thus it would make sense for it to be a property rather than a function, but it would incur the cost of generate such a function for every deferred. That is why it is a function. Alternate approaches could simulate a property in some cases.
The text was updated successfully, but these errors were encountered: