-
Notifications
You must be signed in to change notification settings - Fork 1
argument placeholder added #5
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
Conversation
|
Hello, Currying and Partial Application are very close concepts. Let's take the definitions from this article
According to these definitions and this quote from the README
Your library does Partial Application more then Currying. Because the result of What about the
|
|
I know all the theory, thanks anyway for the head up 😄 In elixir, the language I'm using the most right now, there is no default currying, but a thing called pipeline, that, in my opinion, bring the concept of partial/currying to a higher level. Where expressiveness and terseness wins upon theory. Back to the sad php (that funcionally speaking really sucks) you could only mimic the behaviour. When you apply two arguments to a function with an arity of 3, you are mimicing the fact that a curried language will return a one argument function for every step. In my opinion a placeholder do not fit with this concept. In haskell there is not a thing like that. You simply supply argument in the way they are specified in the original curried function. Having said that, I'm happy to accept your pull request! Because you are really passionate about the argument, and the PR is really well done...many thanks! |
|
new release out!! https://github.com/matteosister/php-curry/releases/tag/0.4.0 |
|
Thank you for accepting my PR. The thing is that I needed this feature in a library I am building https://github.com/tarsana/functional . And by the way, feel free to give me feedbacks about this one 😄 |
Hello, I added a new feature which is argument placeholder. inspired from Ramdajs. This will allow doing things like: