I think chaplin's controller and mode work the way more like actor (which is widly used in erlang).
Mode and controller are notifying each other through the mediator,pub-sub pattern.
This way resembles actor a lot. One part code send message to another part code.
For example, a controller spawned (let's say) by a dispatcher. Then controller spawns corresponding views. All things communicated by send message.
By this way, the loop dependency of MVC will be eliminated which well suit for AMD js.
If one part code go wrong, then it suicide himself and whole branch relate. and let supervisor do things (For example, regenerate whole branch things.
在 2012年4月27日星期五UTC+8上午7时19分20秒,Karel写道: