juji-io / editscript

A library to diff and patch Clojure/ClojureScript data structures
Eclipse Public License 1.0
472 stars 23 forks source link

Improve handling of sets #13

Open huahaiy opened 4 years ago

huahaiy commented 4 years ago

Right now, the sets are handled as maps, i.e. a map of keys to themselves. This will induce non-optimal edits, where a compound set element with slight change will be deleted, then changed element inserted. The correct approach is to try to drill down.