-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
operational transformation #659
Conversation
break; | ||
} | ||
(Some(Insert(_)), _) => { | ||
a_.add(head_a.take().unwrap()); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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(_)), _) => { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Closing as inactive. Feel free to open a new PR if you wish to continue. |
adds functions
map
andmap_both
TODO: