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

Experiment with global state #66

Open
Piturnah opened this issue Sep 2, 2023 · 0 comments
Open

Experiment with global state #66

Piturnah opened this issue Sep 2, 2023 · 0 comments
Labels

Comments

@Piturnah
Copy link
Owner

Piturnah commented Sep 2, 2023

In gex there is a lot of passing around of state which gets awkward in the form of overly complicated function signatures and lifetime semantics.

This feels unfortunate as most of these things (the current view, the minibuffer, the status, etc) should only ever have one instance anyway. As gex runs basically single-threaded, I think there would be very little cost to just having global access to these state via a static variable or similar.

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

No branches or pull requests

1 participant