We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Should memo be a prototype method, a static function, a function decorator, or multiple?
memo
This depends most on whether memo will be mostly used on anonymous functions, named function declarations, and/or class methods.
.bind is a prototype method.
.bind
Underscore and Lodash (necessarily) use static functions.
Python’s lru_cache is a decorator, although we don’t have function decorators yet.
The text was updated successfully, but these errors were encountered:
I'm strictly for a prototype method for .bind consistency and simplicity of usage.
Sorry, something went wrong.
explainer: Expand § unresolved questions
29fc838
See #2, #3, #4, and #5. Closes #1 in favor of #3.
I would also prefer a prototype method
No branches or pull requests
Should
memo
be a prototype method, a static function, a function decorator, or multiple?This depends most on whether
memo
will be mostly used on anonymous functions, named function declarations, and/or class methods..bind
is a prototype method.Underscore and Lodash (necessarily) use static functions.
Python’s lru_cache is a decorator, although we don’t have function decorators yet.
The text was updated successfully, but these errors were encountered: