Skip to content

Can the order in which properties are read be more comprehensible? #122

@gibson042

Description

@gibson042

The current state in ECMA-402 is already confusing (neither alphabetical nor logical), but I'm concerned about v3 making things even worse:

 localeMatcher
 numberingSystem
 in SetNumberFormatUnitOptions:
   style
   currency
   currencyDisplay
   currencySign
   unit
   unitDisplay
+roundingIncrement
 notation
 in SetNumberFormatDigitOptions:
   minimumIntegerDigits
   minimumFractionDigits
   maximumFractionDigits
   minimumSignificantDigits
   maximumSignificantDigits
+  roundingPriority
+trailingZeroDisplay
 compactDisplay
 useGrouping
 signDisplay
+roundingMode

Likewise for Intl.NumberFormat.prototype.resolvedOptions, which similarly doesn't clearly map to anything:

 locale
 numberingSystem
 style
 currency
 currencyDisplay
 currencySign
 unit
 unitDisplay
 minimumIntegerDigits
 minimumFractionDigits
 maximumFractionDigits
 minimumSignificantDigits
 maximumSignificantDigits
 useGrouping
 notation
 compactDisplay
 signDisplay
+roundingMode
+roundingIncrement
+trailingZeroDisplay

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussNeeds discussion to make progress

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions