Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEEDBACK] Consider disallowing duplicate attribute names #756

Open
catamorphism opened this issue Mar 29, 2024 · 2 comments
Open

[FEEDBACK] Consider disallowing duplicate attribute names #756

catamorphism opened this issue Mar 29, 2024 · 2 comments
Labels
data model Issues related with MF data Model LDML46 Items that must be first for post-tech preview (LDML46) normative Preview-Feedback Feedback gathered during the technical preview syntax Issues related with MF Syntax

Comments

@catamorphism
Copy link
Collaborator

Duplicate option names are a data model error, while duplicate attribute names are allowed.

This makes the implementation a little more complicated, as the code is less uniform when it comes to parsing options vs. attributes.

I know that since attributes are reserved for future use, it might be a bit weird to emit errors related to them. Still, unless there's a use case for multiple attributes with the same name, maybe it's worth specifying that attribute names, like option names, must be unique?

@catamorphism catamorphism added Preview-Feedback Feedback gathered during the technical preview data model Issues related with MF data Model LDML46 Items that must be first for post-tech preview (LDML46) labels Mar 29, 2024
@macchiati
Copy link
Member

macchiati commented Mar 29, 2024 via email

@eemeli
Copy link
Collaborator

eemeli commented Mar 29, 2024

I agree. And actually proposed this already, but needed to leave it out of our spec for '45: #751 (comment).

@aphillips aphillips added syntax Issues related with MF Syntax normative labels Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data model Issues related with MF data Model LDML46 Items that must be first for post-tech preview (LDML46) normative Preview-Feedback Feedback gathered during the technical preview syntax Issues related with MF Syntax
Projects
None yet
Development

No branches or pull requests

4 participants