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

Clarity: infer read-only public methods #1629

Closed
jcnelson opened this issue May 26, 2020 · 2 comments
Closed

Clarity: infer read-only public methods #1629

jcnelson opened this issue May 26, 2020 · 2 comments

Comments

@jcnelson
Copy link
Member

This is more of a design question. Should Clarity statically infer whether or not a define-public function is also read-only? I think this could be useful for the RESTful API -- you should be able to call a define-public function if it won't mutate any state.

@jcnelson
Copy link
Member Author

The answer is yes, we can do this, but more generally, we can run any functions (or eval any code we want) via the RESTful API, as long as we make it clear that no mutations will be materialized.

@blockstack-devops
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Nov 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants