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

hax_lib::fstar::options!: accept interface/both/impl #896

Open
W95Psp opened this issue Sep 18, 2024 · 0 comments
Open

hax_lib::fstar::options!: accept interface/both/impl #896

W95Psp opened this issue Sep 18, 2024 · 0 comments
Labels
enhancement New feature or request lib Lib-related issue (i.e. Hacspec lib)

Comments

@W95Psp
Copy link
Collaborator

W95Psp commented Sep 18, 2024

hax_lib::fstar::options! is less expressive than hax_lib::fstar::before! or hax_lib::fstar::after!. Those two accept an optional argument to specify where the annotation should go.
We need that on options (and friends) as well.

This is particularly useful for options on impl blocks, that (currently) only appears in interfaces (when interfaces are on). @karthikbhargavan had that problem with impls and zr3limit.
Additionally we could also make the default smarter for impl blocks.

@W95Psp W95Psp added enhancement New feature or request lib Lib-related issue (i.e. Hacspec lib) labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lib Lib-related issue (i.e. Hacspec lib)
Projects
No open projects
Status: No status
Development

No branches or pull requests

1 participant