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

Uniqueness of names in schemas #828

Open
KevinDCarlson opened this issue Jul 11, 2023 · 2 comments
Open

Uniqueness of names in schemas #828

KevinDCarlson opened this issue Jul 11, 2023 · 2 comments
Assignees

Comments

@KevinDCarlson
Copy link
Contributor

Daniel Filonik suggests making it so that the same name can be used for more than one attribute in a schema. This is common in databases, for instance multiple tables might have an "address" column.

@epatters
Copy link
Member

epatters commented Jul 11, 2023

Having names be unique only within each hom-set is definitely a feature I've often found myself wanting. We might even have an old issue about this; I can't remember.

Implementation might be tricky because the assumption of global uniqueness of names in the schema is probably implicitly made all over the codebase.

@filonik-cmu
Copy link

Perhaps there is a way this could be implemented such that global uniqueness remains intact? I am thinking of some kind of "name mangling" that would automatically prepend the domain (which I am doing these days manually), i.e. turn :name into :Person_name. It's not pretty, but it might get the job done while minimizing changes to the codebase.

@KevinDCarlson KevinDCarlson self-assigned this Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants