Skip to content

Replace "smaller" with "lower" and "larger" with "greater"? LWG4167 #6747

Description

@eisenwave

I've noticed that [algorithms] contains numerous uses of "smaller" and "larger" instead of "lesser" and "greater", or "smallest" and "largest" instead of "least" and "greatest". For example:

Returns: The larger value. Returns the first argument when the arguments are equivalent.
- [alg.min.max] p10

This is surprising and doesn't follow mathematical convention, where you typically speak of "greatest common divisor", "least common multiple", or "lower of two values", not in terms of "smaller" and "larger", which are reminiscent of physical size comparisons. This language is also inconsistent with:

  • std::gcd (can't mean largest common multiple)
  • < (the less-than operator and Unicode LESS-THAN SIGN)
  • > (the greater-than operator and Unicode GREATER-THAN SIGN)
  • std::xxx_ordering::greater and std::xxx_ordering::less
    -std::less and std::greater

With 186 uses, "greater" is much more common in the standard than "larger", at 25. I think we should use consistent language. The standard library symbol names are pretty consistent in using less/great-terminology, but the prose is frequently breaking this convention.

Suggested Fix

Since the words are synonyms and there is no possible ambiguity caused or resolved, we can simply search/replace these terms:

-The larger value.
+The greater value.

Activity

  1. frederick-vs-ja commented on Jan 19, 2024

    @frederick-vs-ja
    Contributor

    As noted in #6776 (comment), it's probably wrong to specify these algorithms with "smaller", "lower", "larger", or "greater".

  2. CaseyCarter commented on Oct 20, 2024

    @CaseyCarter
    Contributor

    This issue is now LWG-4167.

  3. changed the title [-]Replace "smaller" with "lower" and "larger" with "greater"?[/-] [+]Replace "smaller" with "lower" and "larger" with "greater"? LWG4167[/+] on Nov 8, 2025
  4. added
    lwgIssue must be reviewed by LWG.
    P3-OtherTriaged issue not in P1 or P2
    on Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-OtherTriaged issue not in P1 or P2lwgIssue must be reviewed by LWG.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions