by mejutoco · 4y ago · 0 comments
I agree the Elm model makes it easy to reason about it.
Just because we pass "the state of the world" each time instead of mutating it, does not mean that we need a full tree rendering. That is an implementation detail.
We can update just the relevant part. If we think of it mostly as pure functions a lot of it is easier to memoize and — for same input — it is possible to return the same output straight away.
And of course, forcing a purely immutable model comes with its own unique challenges.