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

The unique-ness of make-persistent-state #3

Open
tonyg opened this issue Nov 25, 2014 · 1 comment
Open

The unique-ness of make-persistent-state #3

tonyg opened this issue Nov 25, 2014 · 1 comment

Comments

@tonyg
Copy link
Owner

tonyg commented Nov 25, 2014

(Suggestion from @jeapostrophe) I think that you don't want to try to enforce this too much because you don't want to prevent people from moving the state to a different module. Maybe you could detect within one load cycle whether the same name is used twice.

@tonyg
Copy link
Owner Author

tonyg commented Nov 25, 2014

I've been thinking a little about how to do upgrades where a piece of state needs fixups on module reload. I think moving state between modules might end up being a special case of that: you'd detect the state in the old location during the upgrade, move it to the new location in the new module, and delete the old location. (There's no API for removing a piece of persistent state yet, of course.)

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