Skip to content

Base.isless(u::AbstractInterval, v::AbstractInterval) may create confusing ordering for IntervalValue #36

Description

@sambitdash

Since, Base.isless(u::AbstractInterval, v::AbstractInterval) is defined, the same will propagate down to IntervalValue.

Technically, isequal(u, v) should be similar to !isless(u, v) && !isless(v, u).

But, isequal(u::IntervalValue, v::IntervalValue) will take into consideration the u.value and v.value parameters. This may lead to anomalous behavior in some cases. Like if you are using cmp(u, v) for example.

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