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

Exchange constructor and method argument ForEachXXX classes #1622

Open
victornoel opened this issue Jul 18, 2021 · 1 comment
Open

Exchange constructor and method argument ForEachXXX classes #1622

victornoel opened this issue Jul 18, 2021 · 1 comment

Comments

@victornoel
Copy link
Collaborator

Instead of calling new ForEach(proc).exec(iterable), one should be able to call new ForEach(iterable).exec(proc).

Same for the other ForEach prefixed classes.

The advantage is twofold:

  • it reads better
  • type inference works much better
@victornoel
Copy link
Collaborator Author

@0crat in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants