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.

== and missing values #74

@nalimilan

Description

@nalimilan

I would expect ==(::Nullable, ::Nullable) to return Nullable() when one of the arguments is missing, instead of raising an error -- and defer the error to the point when the code calls get (if it does). What do you think?

For reference, the current behavior is:

julia> Nullable(1) == Nullable(1)
Nullable(true)

julia> Nullable(1) == Nullable(2)
Nullable(false)

julia> Nullable(1) == Nullable()
ERROR: 
 in == at /home/milan/.julia/NullableArrays/src/operators.jl:55

PS: I guess ==(::Nullable, ::Nullable) is supposed to get merged into Base at some point?

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