Skip to content

[RFC] Reserving aliases for unsigned Fixed and signed Normed #228

Description

@kimikage

As noted in #199, unsigned Fixed and signed Normed are mathematically definable, but we still have some preparations to implement them.

Although those types are certainly not used often, but in fact, I occasionally use unsigned Fixed in private projects. In that case, I give those types redundant names.

However, when we handle concrete Fixed/Normed numbers, we often use the aliases (e.g., Q0f7, N0f8). If we have the predetermined aliases for unsigned Fixed and signed Normed, they can be used to make the future migration easier.

See also #51

Candidates

unsigned Fixed

  • UQxfy (Unsigned Q)
  • Qxfy (x+y == 8sizeof(T))
  • Uxfy (Unsigned)
  • Rxfy (following Q)
  • Fxfy (Fixed)
  • Xxfy (fiXed)

signed Normed

Renaming Nxfy to UNxfy is a consistent practice, but it defeats the purpose of making the migration easier.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions