Skip to content

Conversation

@phated
Copy link
Member

@phated phated commented Jul 19, 2017

@erikkemperman Updated your concept. I think this is a lot cleaner than adding a bind method, as it just uses language features.

(Btw, do you have push access to this repo? I wanted to just updated your PR but you weren't working on a branch in the repo.)

@phated phated mentioned this pull request Jul 19, 2017
Closed
@erikkemperman
Copy link
Member

Ah yes, that looks much nicer!

Not sure why I didn't think of avoiding the problem of binding a function arg (type in this case) but not its context -- which is why I didn't think the built-in short-cuts would work -- simply by virtue of not binding at all but just wrapping the call in a new function instead...

@phated
Copy link
Member Author

phated commented Jul 19, 2017

Cool. I think I'll consider this a breaking change. Do you want to submit changes for #8 based on my comment and we can ship them both as 3.0?

@phated phated merged commit 050798a into master Jul 19, 2017
@phated phated deleted the bind branch July 19, 2017 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants