icu4x
icu4x copied to clipboard
Proposal for Compact Decimal Types
Description
Instead of having a single compact implementation that uses SignedFixedDecimal, we propose introducing two separate types:
-
UnsignedCompactDecimal -
SignedCompactDecimal
Benefits
- Type Safety: Clearly distinguishing between signed and unsigned types can help prevent runtime errors.
How do you envision the nesting?
Should it be:
-
Compact<Signed<Decimal>> -
Signed<Compact<Decimal>>
Triage: remains in 2.2 as long as compact decimal is a headline item