mavoweb / mavo

Create web applications entirely by writing HTML and CSS!
https://mavo.io
MIT License
2.83k stars 177 forks source link

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

Open karger opened 10 months ago

karger commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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