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

Example of abstraction using methods with ???. Needs some systematic checks for missing implementations #100

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vkuncak
Copy link
Contributor

@vkuncak vkuncak commented Aug 5, 2024

Using laws is more expressive, but is rather verbose for mutable classes.
This seems much simpler, especially when there is an abstraction function for the state.

However, Stainless should prevent such classes with ??? methods to be used when they are not extern.

This is currently not the case. Instead, if there are any instances of such trait, stainless will permit arbitrary behavior for them and fail the verification.

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.

1 participant