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

Add support for components in both positions of pairs #164

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Ukendio
Copy link
Owner

@Ukendio Ukendio commented Dec 14, 2024

Currently if you want your pairs to have relation data, you have to put a component ID in the first part of the pair. However this restricts usage for many so this PR will let pairs have relation data as long as at least one ID is a component. The behaviour will be that the type gets inferred as the first ID unless it is a tag and in that case it will return the second ID.

pair(Component, Tag) - relation data is typed as First ID
pair(Component, Component) - relation data is typed as First ID
pair(Tag, Component) - relation data is typed as Second ID
pair(Tag, Tag) - no relation data as the pair is considered a tag

@Ukendio Ukendio changed the title Add support for components in both positions of pairs Adds support for components in both positions of pairs Dec 14, 2024
@Ukendio Ukendio changed the title Adds support for components in both positions of pairs Add support for components in both positions of pairs Dec 14, 2024
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

Successfully merging this pull request may close these issues.

1 participant