4 ms·
I would argue that the trailing comma diff issue is an artefact of the fact that diff works at the text level, not at the syntax level (I can only hope this mig
by melloclello 11y ago
I would argue that the trailing comma diff issue is an artefact of the fact that diff works at the text level, not at the syntax level (I can only hope this might be a thing someday)
- ben174 11y agoSounds like an absolute nightmare of a problem to solve. And a maintenance nightmare. Languages change over time.
- melloclello 11y agoI would imagine any version control system attempting to solve this problem would focus very closely on one particular language or development system. Any pragmatic solution would also have to be a highly opinionated one. For a related idea, see Facebook's Haskell system, in which only type-safe code is allowed to be checked into the respository: https://code.facebook.com/posts/745068642270222/fighting-spam-with-haskell/ https://code.facebook.com/posts/745068642270222/fighting-spa...