Conversation
so say you have an array of structs and the user can edit one of them at a time. should you just store the index & edit it
2
Replying to
You have to supply some semantic of identity. If index is a sufficiently descriptive identity, OK. Sometimes ordering's not stable.
Replying to
In general, though, I think about a tree-like structure: some parent can see all the structs; a leaf node sees only one. It emits…
1
Replying to
that might be nicer because i could store the before and then edit in place with Equatable
Replying to
… change events with new struct values. The parent knows how to map events from a given leaf node onto a "truth" value it holds.
1

