Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Make all the things immutable #44

Open
jeffreyguenther opened this issue Jun 6, 2016 · 0 comments
Open

Make all the things immutable #44

jeffreyguenther opened this issue Jun 6, 2016 · 0 comments

Comments

@jeffreyguenther
Copy link
Owner

Because Shiro will try to make use of as much concurrency as makes sense, we should try to make as many things immutable as possible. Trust the JVM to clean up our mess and deallocate memory as it sees fit.

Enforcing immutability is an important principle for Shiro to follow. Any time the API is used to modify the current runtime state a new instance of Program should be created. This will allow us to represent histories of action in an efficient manner.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant