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

Use an "implicit" Context? #261

Open
waywardmonkeys opened this issue Oct 26, 2023 · 0 comments
Open

Use an "implicit" Context? #261

waywardmonkeys opened this issue Oct 26, 2023 · 0 comments

Comments

@waywardmonkeys
Copy link
Contributor

It is tempting to move to using a thread_local!(static CONTEXT: Option<z3::Context> = None) and some helper functions to have a scoped Context ... this would let us remove a bunch (all?) of the Context parameters to the various functions in the z3 crate.

This would help make the API look more like the Python or JS APIs, while still letting people have multiple contexts if they need them.

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

No branches or pull requests

1 participant