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

Require annotation on ambiguous bindings #206

Open
dburgener opened this issue May 1, 2023 · 0 comments
Open

Require annotation on ambiguous bindings #206

dburgener opened this issue May 1, 2023 · 0 comments

Comments

@dburgener
Copy link
Owner

From a commit message in #205:

Currently this assumes only one valid match. It's possible that we
could have multiple valid matches. For example:

resource read {}
resource write {}

let foo = [ read write ];

In this case, we don't know if foo is supposed to be a list of
permissions or a list of resources until we start using it. As a future
enhancement, we should detect that there are ambiguous possibilities and
prompt the developer to annotate the binding like so:

let foo<perm> = [ read write ];
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