Stream: helpdesk (published)

Topic: Diff between `Expr`s


view this post on Zulip Lilith Hafner (Jul 03 2024 at 15:34):

Is there a way to check if two Exprs are equal and, if not, show a minimal diff?

view this post on Zulip Lilith Hafner (Jul 03 2024 at 15:36):

Similar question for JuliaSyntax's SyntaxNode

view this post on Zulip Mosè Giordano (Jul 05 2024 at 16:25):

I mentioned elsewhere that https://github.com/simeonschaub/DiffUtils.jl may be useful

view this post on Zulip Lilith Hafner (Jul 06 2024 at 14:39):

The closest I've found is https://github.com/JuliaLang/JuliaSyntax.jl/blob/f425045d56f75c71493aba77e1b751f69f552e48/test/test_utils.jl

view this post on Zulip Sebastian Pfitzner (Jul 06 2024 at 16:22):

there's also some diff printing logic in CSTParser's tests, but it's pretty dumb (might still serve as inspiration though)

view this post on Zulip Notification Bot (Jul 06 2024 at 17:16):

cormullion has marked this topic as resolved.

view this post on Zulip Notification Bot (Jul 06 2024 at 17:18):

cormullion has marked this topic as unresolved.


Last updated: Dec 28 2024 at 04:38 UTC