Skip to content

proposal: cmp: Add constants Lt, Eq, Gt #68529

@earthboundkid

Description

@earthboundkid

Proposal Details

Package io has SeekStart, SeekCurrent, SeekEnd to document the magic values 0, 1, 2 for Seeking. Package cmp should have constants Lt = -1, Eq = 0, and Gt = 1 for documenting what a compare function returns.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions