Closed vitorenesduarte closed 8 years ago
Also, state_mvregister
demands CRDTs as values, while in state_lwwregister
and pure_mvregister
we can have anything.
This is basically because DotFun demands \join to be defined in the values, in order to merge two DotFun's. (see MVRegister and DotFun definition here)
Not sure how to proceed on this one.
For now, I personally would not bother unifying the APIs until we have a reason to perform all of that work.
I did it on #60 Should revert it?
No, if you already did the work, that's fine.
pure_mvregister
uses{set, value()}
state_mvregister
uses{set, value()}
state_lwwregister
uses{set, timestamp(), value()}
In
state_lwwregister
, the operation was extended to{set, timestamp(), value()}
because we also need to supply a timestamp.Should
pure_mvregister
andstate_mvregister
operations be extended as well (and in that case they would ignore the timestamp) or there's a better approach?Note: both
state_lwwregister
andstate_mvregister
are implemented in #60