Skip to content
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

anonymous function #2503

Closed
Delta456 opened this issue Oct 23, 2019 · 4 comments
Closed

anonymous function #2503

Delta456 opened this issue Oct 23, 2019 · 4 comments
Labels
Feature/Enhancement Request This issue is made to request a feature or an enhancement to an existing one. Status: Duplicate This issue has been marked as a duplicate of another issue.

Comments

@Delta456
Copy link
Member

Like Go, V should also have anonymous functions.

fn main() {
  fn(foo string) {
   println(foo)
  }('foo')
}
@Delta456 Delta456 added the Feature/Enhancement Request This issue is made to request a feature or an enhancement to an existing one. label Oct 23, 2019
@nedpals
Copy link
Member

nedpals commented Oct 23, 2019

would be a cool thing too to be stored in variables

@Delta456
Copy link
Member Author

@nedpals That might not be called anonymous anymore IMO.

@BafS
Copy link
Contributor

BafS commented Nov 1, 2019

See #1066

@chanbakjsd
Copy link
Contributor

See #1066

This issue is a duplicate so I'm closing it. 😃

@chanbakjsd chanbakjsd added the Status: Duplicate This issue has been marked as a duplicate of another issue. label Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature/Enhancement Request This issue is made to request a feature or an enhancement to an existing one. Status: Duplicate This issue has been marked as a duplicate of another issue.
Projects
None yet
Development

No branches or pull requests

4 participants