Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

API changes for next observe version #18

Open
jmesserly opened this issue May 1, 2015 · 1 comment
Open

API changes for next observe version #18

jmesserly opened this issue May 1, 2015 · 1 comment

Comments

@jmesserly
Copy link
Contributor

proposal for v0.20.0:

New APIs inspired by: https://github.com/sigmundch/DEP-member-interceptors/tree/master/example/observe

remove older features:

  • PathObserver/Bindable
  • ChangeRecord marker interface (at the moment, it's only there to support PathObserver)
  • dirty checking
@jmesserly jmesserly changed the title switch to sourcegen, remove transformer API changes for next observe version May 1, 2015
@sigmundch
Copy link
Contributor

Here is an updated prototype of what I have in mind: https://github.com/sigmundch/observe_gen

In particular, like the proposal the prototype:

  • is designed to support sourcegen
  • optimizes the subscription mechanism (streams are not added by default)
  • supports getters, and hence does not need path-observer
  • removes dirty-checking, PathObserver, etc

One differences with your proposal above is that instead of spiting the observable interface, we completely removed it. We change the granularity of observability to the point where it may not be needed.

There are still a couple patterns I have not yet looked into:

  • support for list and maps
  • the notion of a change record

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

No branches or pull requests

2 participants