AFAIK not. It isn’t a very trivial problem. For a previous project I rolled my own. But I guess that with some compiler plugin magic a lot is possible. With reflection you can also get pretty far.
👆 1
j
Joffrey
05/18/2024, 3:30 PM
In which form would you expect this to happen? What type would
diff
return?
If you want to diff for debug purposes or in a textual form in general, you could consider serializing to JSON and diffing the JSON as text (there are libraries for this AFAIK)