8000 feat: [WIP] Persistent env extension custom types by digama0 · Pull Request #3687 · leanprover/lean4 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: [WIP] Persistent env extension custom types #3687

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

digama0
Copy link
Collaborator
@digama0 digama0 commented Mar 15, 2024

The PersistentEnvExtension type required that the data stored in an .olean file for the extension was of type Array α for some α, even thoug 8000 h it did not really take advantage of this structure at all (except for requiring that it has a default value, for slightly dubious reasons). This PR generalizes it to allow any type, in case the extension wants to e.g. store a per-file HashMap or RBMap directly in the olean instead of an array.

Breaking changes (metaprogramming only):

  • All uses of PersistentEnvExtension α β σ are now PersistentEnvExtension (Array α) β σ. Other extension variants are not affected.

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
0