-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
FrozenDueToAge
LanguageChange
Suggested changes to the Go language
Thinking
v2
An incompatible library change
Milestone
Comments
gopherbot
added
Thinking
priority-someday
LanguageChange
Suggested changes to the Go language
labels
Mar 3, 2014
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
FrozenDueToAge
LanguageChange
Suggested changes to the Go language
Thinking
v2
An incompatible library change
by fjanon:
The text was updated successfully, but these errors were encountered: