Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.
This repository was archived by the owner on May 4, 2019. It is now read-only.

Definition of == for NullableArray doesn't seem to work #82

@quinnj

Description

@quinnj

My guess is we're relying on some AbstractArray behavior, but the fact that we return Nullable{Bool} instead of Bool is throwing something off. To be clear, I'm not advocating for not returning Nullable{Bool}, I think we may just need to define our own == or something where the semantics of Nullable{Bool} vs. Bool are currently breaking things.

julia> a = NullableArrays.NullableArray([1])
1-element NullableArrays.NullableArray{Int64,1}:
 1

julia> b = NullableArrays.NullableArray([1])
1-element NullableArrays.NullableArray{Int64,1}:
 1

julia> a == b
ERROR: TypeError: non-boolean (Nullable{Bool}) used in boolean context
 in == at abstractarray.jl:1041

julia>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions