Get the latest tech news

How far should a programming language aware diff go?


Language aware diffs remove noise from diffs by hiding irrelevant changes, but where do you draw the line between relevant and irrelevant changes?

In this blog post I want to discuss a question we often come across when working on SemanticDiff: What kind of changes do developers care about? This is very similar to git diff -w except that by parsing the code we can correctly determine whether a whitespace affects the interpretation of the program. On the other hand, having the option to ignore these kinds of changes can help you find modifications that were supposed to be no-ops but aren’t.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of programming language

programming language

Photo of aware diff

aware diff

Related news:

News photo

Huawei unveils its own programming language the "Cangjie"

News photo

I am writing a programming language

News photo

The Consequences of One's First Programming Language