Skip to content

Allow empty collections  #570

Closed
Closed
@kaspar-p

Description

@kaspar-p

This was discussed during the gist overview during the 2021 Summit.

The empty set (and by extension, empty list) is an important concept and widely useful.

For a use-case, imagine there were a university professor that had a course, and wanted to keep an OrderedCollection of students with the order basis being their grade (0-100). For administrative purposes, it would be nice to add the course into the data, and give it this ordering, before actually having students with grades.

Note that in the above example, student-with-grade would be the proxy object for student. The course might be full of students, though none of them have grades yet. The structure of having an OrderedCollection would be useful at that moment.

The current implementation defines a gist:OrderedCollection as something that has OrderedMember's, but perhaps an alternative definition defines the fact that gist:OrderedCollection's contain 0 or more OrderedMember's. This keeps the scope to being OrderedMembers, but might also include emptiness.

Metadata

Metadata

Assignees

Labels

status: implementation specifiedImplementation has been specified. A developer should be assigned.topic: collectionsIssues related to collections, membership, and ordering

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions