composablesys / collabs

Collabs library monorepo
https://collabs.readthedocs.io/
Apache License 2.0
253 stars 11 forks source link

Interfaces RFC: Number #103

Closed mweidner037 closed 3 years ago

mweidner037 commented 3 years ago

Interface

https://github.com/composablesys/compoventuals/blob/master/client/src/crdt/number/interfaces.ts

Planned implementations

Questions

mweidner037 commented 3 years ago

Plan: remove the interface. Instead, DefaultNumber becomes the CNumber. AddOnlyNumber will become Counter, which is its own thing, with just inc() operations. (Possibly also versions with dec(), reset()). If there are multiple implementations of Counters, they could have their own interface.

mweidner037 commented 3 years ago

Done by https://github.com/composablesys/compoventuals/pull/138