We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Equal<A, B, T = A, E = never> NotEqual<A, B, T = A, E = never>
Changing Equal<> is not a problem and is clear, as A and B are equal, returning either one is fine.
Equal<>
A
B
NotEqual<> is more problematic as It's ambiguous on which one to return. Returning A per "convention" helps, but the logic is not clean.
NotEqual<>
There are probably use cases for this, as the filter variant is more generic than the predicate variant.
filter
predicate
Will keep it as is for now, until there are sufficient use cases to support the change.
This will be a breaking change.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Changing
Equal<>
is not a problem and is clear, asA
andB
are equal, returning either one is fine.NotEqual<>
is more problematic as It's ambiguous on which one to return.Returning
A
per "convention" helps, but the logic is not clean.There are probably use cases for this, as the
filter
variant is more generic than thepredicate
variant.Will keep it as is for now, until there are sufficient use cases to support the change.
This will be a breaking change.
The text was updated successfully, but these errors were encountered: