Skip to content

strings: document properties of EqualFold #44867

Open
@dsnet

Description

@dsnet

It is unclear whether EqualFold implements some common operation defined in the Unicode standard. If so we should document what that is and reference it. It is also unclear what properties of EqualFold are guaranteed. Is it safe to assume that EqualFold holds to the same relations that one would expect from equality?

  • Reflexive: strings.EqualFold(a, a)?
  • Symmetric: strings.EqualFold(a, b) == strings.EqualFold(b, a)?
  • Transitive: if strings.EqualFold(a, b) && strings.EqualFold(b, c), then strings.EqualFold(a, c)?

Similar documentation should be made on bytes.EqualFold

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions