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
proposal: spec: currying of arbitrary functions #4633
Labels
Milestone
Comments
I think that currying partially is supported by the language when the curried parameter is the receiver:
|
rsc
changed the title
spec: currying of arbitrary functions
proposal: spec: currying of arbitrary functions
Jun 20, 2017
You can also do so using anonymous functions and capturing: f := func() { somefunc("a str", 1) }
.
.
.
f() |
This issue is basically about syntactic sugar for simple functions with arguments. As such I'm going to close this as a dup of #21498 as that issue has a lot more discussion on it. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
by fjanon:
The text was updated successfully, but these errors were encountered: