Skip to content

operational transformation #659

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

Conversation

oberblastmeister
Copy link
Contributor

adds functions map and map_both

TODO:

  • tests
  • docs

break;
}
(Some(Insert(_)), _) => {
a_.add(head_a.take().unwrap());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd just call a_.insert(s) here and get rid of add

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't do this because of borrow checker things, it would move out

(None, None) => {
break;
}
(Some(Insert(_)), _) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that there's just one or two places that handle Insert I wonder if OperationView is needed

Copy link
Contributor Author

@oberblastmeister oberblastmeister Aug 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is needed because of borrow checker things. Because we only borrow the second ChangeSet, it will yield references which we can't use. So we convert it to an OperationView because we don't actually need the Tendril, we only need the length. That way the type becomes copyable, and we get pattern matching coverage checking

@archseer archseer mentioned this pull request Dec 27, 2021
@the-mikedavis the-mikedavis added the S-waiting-on-review Status: Awaiting review from a maintainer. label May 18, 2022
@kirawi
Copy link
Member

kirawi commented Sep 13, 2022

Closing as inactive. Feel free to open a new PR if you wish to continue.

@kirawi kirawi closed this Sep 13, 2022
@kirawi kirawi added S-inactive Status: Inactive and waiting on the author. This is often applied to closed PRs. and removed S-waiting-on-review Status: Awaiting review from a maintainer. labels Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-inactive Status: Inactive and waiting on the author. This is often applied to closed PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants