Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

Why put measure units in the own constructor when currencies share the NumberFormat constructor? #5

@sffc

Description

@sffc

Measure units (meters, joules, seconds) and currencies are two ways to specify the thing that a number is quantifying. Why should one have its own constructor while the other is part of NumberFormat?

See tc39/ecma402#215 for my proposal, adding measure units as an option to NumberFormat instead of having its own class under Intl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions