There is clearly some normalization going on when checking for duplicate variant keys (and it's not just based on their raw appearance in the mf2 text), so that foo and |foo| can be considered to be the same key and thus report an error.
What happens when using number literals? Are 0.1 and 1e-1 duplicate keys? And 0.1 and 0.10? What about 1 and |1|?
Ref https://github.com/unicode-org/message-format-wg/blob/main/spec/errors.md#duplicate-variant
There is clearly some normalization going on when checking for duplicate variant keys (and it's not just based on their raw appearance in the mf2 text), so that
foo
and|foo|
can be considered to be the same key and thus report an error.What happens when using number literals? Are
0.1
and1e-1
duplicate keys? And0.1
and0.10
? What about1
and|1|
?