Open mike-thompson-day8 opened 4 years ago
deep-diff2 seems like the recommended way to go for
If you want to look at the diffs and do not care if the diffs are always the smallest possible, deep-diff2 is great.
It is also written in CLJC, so runs in ClojureScript.
However, the only way of "pretty printing" in the docs mentions Puget and Fipp, which are Clojure-only. So its not yet clear how one would colourise the output w/ ClojureScript.
In various places, the re-frame-10x user interface shows how data has changed between one epoch and the next.
It currently uses
clojure.data/diff
to calculate these diffs.But perhaps we should be using Editscript instead?
Also, see this analysis: https://juji.io/blog/comparing-clojure-diff-libraries/