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

Syntax to mark multiple relationships as unchanged #53

Open
zsfre opened this issue Oct 4, 2020 · 2 comments
Open

Syntax to mark multiple relationships as unchanged #53

zsfre opened this issue Oct 4, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@zsfre
Copy link

zsfre commented Oct 4, 2020

in predicates, we end up writing something like:

linked' = linked
working' = working
something' = something

doing this repeatedly is tedious and not always easy to see. I suggest an equivalent to TLA's UNCHANGED

unchanged linked, working, something

@nmacedo nmacedo added the enhancement New feature or request label Nov 13, 2020
@nmacedo
Copy link
Member

nmacedo commented Nov 13, 2020

We are studying language extensions to ease the definition of "events" using predicates, the ability to mark elements as unchanged would be part of that broader extension.

@grayswandyr
Copy link
Collaborator

Meanwhile, you can use the "hidden" macro feature of Alloy and define unchanged yourself:

let unchanged[r] { (r) = (r)' }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants