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

Exclusive/disjoint on view atoms? #153

Open
MattWindsor91 opened this issue Jun 12, 2017 · 0 comments
Open

Exclusive/disjoint on view atoms? #153

MattWindsor91 opened this issue Jun 12, 2017 · 0 comments

Comments

@MattWindsor91
Copy link
Collaborator

I wonder if exclusive and disjoint would be more ergonomic if expressible on view atoms instead of views, e.g.

view exclusive holdLock();  // autogenerates 'constraint holdLock() * holdLock() -> false;'
view disjoint thread(int id); // autogenerates 'constraint thread(id_0) * thread(id_1) -> id_0 != id_1;'

This wouldn't work well with exclusive/disjoint constraints over different view atoms, though, unless it was a shorthand (and I'm torn as to whether Starling should have lots of syntactic sugar, or little syntactic sugar).

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

1 participant