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

enhance capabilities of history #85

Open
pimg opened this issue Aug 1, 2024 · 0 comments
Open

enhance capabilities of history #85

pimg opened this issue Aug 1, 2024 · 0 comments
Labels
feature suggestions for new features

Comments

@pimg
Copy link
Owner

pimg commented Aug 1, 2024

currently the back option is very naive as it tracks only the previous state and the current state and back sets the current state to the current state.

this means A -> B -> C (current state is C) and going back twice results in the current state being C again:

  1. back C -> B
  2. back B -> C

It would be better in this case if going back twice would result in current state A

a history implementation that uses a stack like construct instead of tracking only the current and previous state should be considered.

@pimg pimg added the feature suggestions for new features label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature suggestions for new features
Projects
None yet
Development

No branches or pull requests

1 participant