Shane F. Carr
Shane F. Carr
Seems okay, though if we do this then the urgency of `toString` returning the full data model (#12) is elevated, since developers will reach for `toString` when serializing to JSON.
I would be slightly in favor, I think, of Decimal supporting toJSON, but if it does, it should retain the whole data model (trailing zeros) in order for it to...
Maybe @zbraniecki can answer that
While we're at it, can we please rename this function to "normalize_syntax" since that's what it does, as opposed to LocaleCanonicalizer that does actual data driven canonicalization
If it helps, it is the language I used in TimeZoneIdMapper: https://unicode-org.github.io/icu4x/rustdoc/icu_timezone/struct.TimeZoneIdMapper.html#normalization-vs-canonicalization "normalize" means to keep the original semantic meaning but massage it into a normalized form, and "canonicalize" means...
I think the methods should be called "normalize" because they normalize syntax but do not canonicalize subtags.
The intl era month code proposal seeks to specify a high level framework for calendar interop between engines, which should include this issue. See for example: https://github.com/tc39/proposal-intl-era-monthcode/issues/5