automerge / automerge-classic

A JSON-like data structure (a CRDT) that can be modified concurrently by different users, and merged again automatically.
http://automerge.org/
MIT License
14.77k stars 467 forks source link

"Observble" vs "Observer"? #489

Closed grandsong closed 2 years ago

grandsong commented 2 years ago

If A watch/observe B, I would name A "Observer" and B "Observble".

But, in the official document,

An observable is an object that can be initialized to watch the state of a document.

and

observable.observe(doc, (diff, before, after, local, changes) => {
  // ...
}

Why "observable"? Why not "observer"?

ept commented 2 years ago

Yeah this class is perhaps mis-named. The proposed repository API (#486) will supersede this observable API anyway, so that will be an opportunity to clean up the naming.