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

Deprecating statement refinement syntax - #2765 #2756

Merged
merged 51 commits into from
Sep 26, 2022

Conversation

davidcok
Copy link
Collaborator

@davidcok davidcok commented Sep 19, 2022

Fixes #2765, which was part of #2425

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

davidcok added 30 commits July 14, 2022 08:11
@davidcok davidcok changed the title Cok 2425 Deprecating statement refines - #2425 Sep 19, 2022
@davidcok davidcok changed the title Deprecating statement refines - #2425 Deprecating statement refinement syntax - #2425 Sep 19, 2022
Copy link
Member

@MikaelMayer MikaelMayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm good with it, but I would prefer to have @RustanLeino provide the final review for that because I don't know the ins and outs of statement refinements

Makefile Show resolved Hide resolved
@davidcok
Copy link
Collaborator Author

OK with having Rustan review it, Actually Anjali has called a halt on deprecating stuff, so there will be some strategic conversation before this is merged.

@davidcok davidcok changed the title Deprecating statement refinement syntax - #2425 Deprecating statement refinement syntax - #2765 Sep 20, 2022
Copy link
Collaborator

@RustanLeino RustanLeino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I suggest that this PR also deprecate the modify statement.

@davidcok
Copy link
Collaborator Author

Did you mean to deprecate both senses of the modify statement?

@MikaelMayer
Copy link
Member

Oh no ! Unless you have an alternative, please don't deprecate the modify statement.
I think the modify statement is actually helpful to modify just the modify behavior of a method. It's makes it possible to debug more easily what's wrong in code where Dafny complains about not being able to modify something.

@davidcok
Copy link
Collaborator Author

Mikael - is it the modify X (i.e. havoc) that you use, or the modify x { } which ought to be modifies and which Rustan proposes to perhaps eventually become do requires... modifies... ensures... { ... }?

@MikaelMayer
Copy link
Member

Mikael - is it the modify X (i.e. havoc) that you use, or the modify x { } which ought to be modifies and which Rustan proposes to perhaps eventually become do requires... modifies... ensures... { ... }?

The havoc statement, the first one. I do like the do requires modifies ensures {...} that would be very handy.`

@RustanLeino
Copy link
Collaborator

Okay, let's treat the modify statement separately from this PR. I will approve this PR as is.

@davidcok davidcok merged commit 195c21e into dafny-lang:master Sep 26, 2022
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.

Deprecate statement level refinements
3 participants