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

Context for Map #66

Open
FintanH opened this issue Apr 8, 2020 · 1 comment
Open

Context for Map #66

FintanH opened this issue Apr 8, 2020 · 1 comment

Comments

@FintanH
Copy link
Contributor

FintanH commented Apr 8, 2020

It seems strange to call a function like len or is_empty just to get the ReadCtx for a Map. I'd like to suggest adding a function read_ctx that returns ReadCtx<(), A> for this use case.

Also updating the example showing the use of it.

@davidrusu
Copy link
Member

Yep, makes sense. We have this implemented for the Orswot already: https://github.com/rust-crdt/rust-crdt/blob/master/src/orswot.rs#L274-L280

Would be good to bring this to the Map as well

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

No branches or pull requests

2 participants