Skip to content

Docs for associated constants #8355

Closed

Description

@isuffix

We should add sections to the docs pages for associated constants on types, like float.inf. Currently only associated functions/types/elements get their own docs, but not constants.

I think we could do this by adding a #[constant] attribute to the constants in a #[scope] and then allow them to store data similar to NativeTypeData in the Binding.

Activity

  1. added
    docs
    on May 27, 2026
  2. MDLC01 commented on Jun 3, 2026

    @MDLC01
    Collaborator

    Unless you are already working on this, I can give it a try

  3. MDLC01 commented on Jun 3, 2026

    @MDLC01
    Collaborator

    The documentation for non-associated constants, such as math spacing constants, could be improved as well (e.g., #5274).

  4. isuffix commented on Jun 3, 2026

    @isuffix
    CollaboratorAuthor

    Please do!

  5. isuffix commented on Jun 3, 2026

    @isuffix
    CollaboratorAuthor

    Although you may want to check with @saecki on whether Binding is the right place to store the docs or not.

  6. added
    docs-infra
    docs
    and removed
    docs
    on Jun 4, 2026
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

    docsdocs-infra

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions