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

Unique names #13

Open
xogeny opened this issue Nov 13, 2014 · 0 comments
Open

Unique names #13

xogeny opened this issue Nov 13, 2014 · 0 comments

Comments

@xogeny
Copy link
Owner

xogeny commented Nov 13, 2014

There are many cases where it would be good to guarantee unique names for elements. For this reason, I think it would be good to introduce another special pattern to indicate uniqueness. It could be in the name pattern or it could be in the rule.

The name pattern might seem like a good place (after all, it is the name that we want to be unique). However, then we get into the problem of this special syntax overlapping valid patterns. We already have this problem with _ (i.e. we don't have a way to actually require an underscore...if we ever wanted that).

For this reason, it is probably better to put this in the rule itself. Prefixing a rule name with something like @ might work. There should be a rule that all rules with the same name also have the same value for this uniqueness property.

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