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

Idea: permit mismatched property names on mv-list and mv-list-item #992

Open
karger opened this issue Nov 6, 2023 · 2 comments
Open

Idea: permit mismatched property names on mv-list and mv-list-item #992

karger opened this issue Nov 6, 2023 · 2 comments

Comments

@karger
Copy link
Collaborator

karger commented Nov 6, 2023

There's a general problem with lists, deciding whether to use singular or plural words for naming them. With the mv-list/mv-list-item distinction we could have it both ways: allow the author to use the plural name with the mv-list and the singular with the mv-list-item. T An added benefit is some "type safety": the author can use the plural name in an expression anywhere (including inside a single mv-list-item) and still be clearly referring to the entire list.

@DmitrySharabin
Copy link
Member

There's a general problem with lists, deciding whether to use singular or plural words for naming them.

Seconded. I “suffer” every time I add collections to my apps. 😅

@LeaVerou
Copy link
Member

LeaVerou commented Nov 7, 2023

Interesting idea. So what would the semantics of the singular name be, outside the list? Just an alias to the mv-list name?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants