Skip to content

REFACTOR: Make comparison expression behavior match Golang spec #3624

Description

@angelamayxie

We can't expect the return value of Compare to always be -1, 0, or 1 and we should instead be checking for polarity. Golang does not require the return value of a Compare function to always be -1, 0, or 1 and can instead be any number, so this expectation can actually break integrations.

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