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

Make sure rules don't use global mutable state by accident. #224

Open
L-as opened this issue Nov 4, 2024 · 0 comments
Open

Make sure rules don't use global mutable state by accident. #224

L-as opened this issue Nov 4, 2024 · 0 comments

Comments

@L-as
Copy link
Collaborator

L-as commented Nov 4, 2024

We ideally want something like the opposite of make_checked, i.e. something that resets the global mutable state to an invalid value.

I have a feeling the internal state of Snarky can become invalid if you do run_checked (let* () = f in let* () = g () in ()) if g () makes use of the global mutable state. I might be wrong though.

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