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

Consider requiring names to be unique #37

Open
LTLA opened this issue Jan 31, 2024 · 0 comments
Open

Consider requiring names to be unique #37

LTLA opened this issue Jan 31, 2024 · 0 comments

Comments

@LTLA
Copy link
Member

LTLA commented Jan 31, 2024

Historically, names along the dimensions of an object are not required to be unique or non-empty, as those constraints can be violated when combining objects or subsetting them with duplicated indices.

By comparison, other names are required to be unique, e.g., assay names in an SE, column names in a DF. This is a tighter constraint that lends itself to more representations in other languages, e.g., Python dicts, JS objects.

Perhaps we can consider whether to force dimension-related names to be unique and non-empty. This would be mildly irritating to R users, who now have to sanitize their objects, but would provide more guarantees for readers.

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

1 participant