News for hackers. Stuff that matters.
Re:Types are the basic tool of software design by DarkPlayer on Friday January 03, 2025 @04:27PM (#42589655)
Difftastic would not solve the issue described by madeofpalk because it still highlights the added comma. You need a diff tool that can distinguish between optional and required syntax. So far I am not aware of any tool that supports this, except the one I am working on (SemanticDiff).
Re:Types are the basic tool of software design by benatkin on Friday January 03, 2025 @06:23PM (#42590585)
I'm pretty sure this counts. https://github.com/afnanenayet/diffsitter

Certainly the idea has been suggested many times. I think people end up formatting both before/after and doing a diff on formatted before against formatted after. I've done that.