So much of good system design is closure. A function of functions is a function. A stack of Lego bricks can be used like any one Lego brick.
Conversation
Been thinking about this a lot. Elm’s prescribed architecture implies that programs (state + fx) compose into programs (!)
1
1
1
… This feels right to me, as long as state composes with state, events with events, etc. See: github.com/davidcairns/Ap
1
1
Yeah, the composition of events has been one of the tricky issues. Particularly when you may need to add arbitrary "kinds"
1
As events bubble up the object graph, they can be boxed and re-boxed to reflect the original emitter. Is this too brittle?
1
Replying to
Sorry, not sure what you mean!
Replying to
It’s also possible I’m the confused one. Dammit, Twitter! I guess: what’s the difficulty in composing events?
1
Like, if some deep leaf must emit a “needs remote image” event, has to propagate through ancestors ignorant of that event type
1
Show replies

