Skip to content

Ord on Time may be misleading; consider removing in 3.0Β #7045

@sffc

Description

@sffc

Time values are cyclic, and in real life they are usually associated with a time zone. For both of these reasons, an Ord impl on Times might be misleading.

If we removed the impl, we should add a total_cmp function similar to the one we have on Locale and LanguageIdentifier so that clients can still access the behavior and write their own Ord wrapper if needed.

See #7035 (comment)

CC @michalmoc

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-calendarComponent: CalendarsdiscussDiscuss at a future ICU4X-SC meeting

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions