-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
_.bind supports _.partial application, but not its non pre-filled argument syntax with _ #2328
Comments
Currently Underscore only supports placeholders in From a feature parity perspective lodash supports placeholders in |
I'm good with it. Note that this will invalidate the first two options in #2214 (comment). |
I'd rather wait til 2.0 before anything radical is done to bind. Though we could definitely work towards 2.0/underdash soon |
I'm cool with deferring to 2.0. We should add it to a 2.0 issue or wiki entry so it's not forgotten then close out this issue. |
If you're going to defer this to 2.0, I'd recommend adding a note to the documentation. It says to check _.partial documentation for the partial application, which leads the reader to believe that _.bind also supports it. |
I don't know if this is intended behavior, but it seems all around confusing if so. My guess is this portion of _.bind was just left untouched when _.partial received this functionality. Here's the simplified reproduction of it in jsfiddle: http://jsfiddle.net/j3jpL4eb/1/
The text was updated successfully, but these errors were encountered: