I think I could avoid the need for lenses-as-rumours by wrapping the view/controller instances in value types.
Conversation
so Document has WindowControllerState, WindowControllerState has GraphViewState, GraphViewState has NodeViewState…
1
and each *State type also has a property of the corresponding ref type, WindowController, GraphView, NodeView, &c.
1
basically turn the reference types inside out.
1
And the rumors flow up by directly invoking methods on the refs?
1
Is rumour user → model? or the other way?
2
Replying to
Rumors are user to model, yes. Yeah, this approach still involves shared state.
Replying to
That said I think the jump could be much shorter that way (than propagating back w/ signal/lens/callback/etc).
1
in fact you could make the initializers private so you can _only_ make View via the appropriate ViewState.
2
Show replies

