-
-
Notifications
You must be signed in to change notification settings - Fork 639
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
CheckedConsumer with more than one param #2325
Comments
For all your parameter needs, you can take a look at https://github.com/hamnis/arities |
Hi @galegofer, |
Vavr will not support CheckedConsumers. CheckedFunctionN<any T1, ..., any Tn, void> |
Hi Daniel, Thanks for the quick answer, and sorry for the late response.
with:
I think that to return null, just to don't have an interface makes the code less readable and given we have these kinds of interfaces at VAVR 0.9.x, why no to add another one (n indeed) that's will help us to make the code more concise?. Another question that is arising in my head, what's going to happen with VAVR 0.9.x branch, I mean, given VAVR 1.0.x is not going to be backward compatible with 0.9.x, does it means that 0.9.x maintenance will finish? or 0.9.x will have eventually a release to a major version (not just to 0.10.x)? |
@galegofer, please find my thoughts about Vavr support here: http://blog.vavr.io/vavr-support-roadmap/ In Java there will be primitive generics
which would make CheckedConsumers obsolete. I suggest to write your own FIs for that purpose, they are each only 3 LOC. |
I didn't know about Java with primitive generics, that's amazing, so it makes sense what you said. Thanks! |
@danieldietrich When you say "In Java there will be primitive generics", you meant https://openjdk.java.net/jeps/218? |
Yes |
Hello,
Is there any reason why we have a CheckedConsumer with just one parameter, and not like the CheckedFunctionX interfaces with several ones?, I mean CheckedConsumer<A, B, C,...>?.
Just curious.
Thanks
The text was updated successfully, but these errors were encountered: