Hacker News new | ask | show | jobs
by samatman 1858 days ago
I acknowledge this problem while throwing up my hands at the incredible laziness of the entire profession in not employing syntactically-aware diffing.

It's our own fault, we have no excuse, and it galls me to serve a dumb line-based algorithm over the writers and readers of my code.

1 comments

Ideally, what is stored in version control is just the AST, and how you or I display it is up to our own preference. Then I won't have to care about your weird indentation preferences and other style choices and you won't have to care about mine!