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

Restore old == using three-valued logic, separate from isequal() #1242

Merged
merged 1 commit into from
Sep 30, 2017

Conversation

nalimilan
Copy link
Member

@nalimilan nalimilan commented Sep 30, 2017

This is consistent with null == null returning null in the next Nulls release (JuliaData/Missings.jl#33), but does not depend on it. This was actually the old behavior when using DataArrays.

Note that with Nulls.jl master, things like [1, null] == [1, null] throw because if null is an error. We could probably fix that by providing a special method for ==(::AbstractArray{:>Null}, ::AbstractArray), but that would cover ==(::Array{Any}, ::Array{Any})... We should discuss that in Nulls.jl. Tests do not appear to cover this, so we should add a few when it works.

This is consistent with null == null returning null in the next Nulls release,
but does not depend on it. This was actually the old behavior when using DataArrays.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 88.414% when pulling e9fa448 on nl/== into e32f7c0 on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 88.414% when pulling e9fa448 on nl/== into e32f7c0 on master.

@cjprybol cjprybol merged commit dea0e77 into master Sep 30, 2017
@cjprybol cjprybol deleted the nl/== branch September 30, 2017 23:12
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.

None yet

4 participants