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

Implement PartialEq for array == &array and &array == array #958

Merged
merged 1 commit into from
Mar 27, 2021

Conversation

bluss
Copy link
Member

@bluss bluss commented Mar 27, 2021

This adds missing implementations - so that we can compare a == &b and
&a == b where a and b are arrays or array views.

The change to the windows test shows why this is beneficial - no need to
create views from &Array etc just to do a comparison.

Type inference complications should be negligible/permissible in this case.

This adds missing implementations - so that we can compare a == &b and
&a == b where a and b are arrays or array views.

The change to the windows test shows why this is beneficial - no need to
create views from &Array etc just to do a comparison.
@bluss bluss merged commit e5d4bf7 into master Mar 27, 2021
@bluss bluss deleted the partial-eq-with-reference branch March 27, 2021 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant