3 ms·
Encoding a generic, potentially versioned AST in S-expressions seems feasible. I believe the Unison language [1] does this for their code storage system. (Unis
by the_duke 6y ago
Encoding a generic, potentially versioned AST in S-expressions seems feasible.
I believe the Unison language [1] does this for their code storage system. (Unison does not use traditional text storage but stores code in a normalized repository)
[1] https://github.com/unisonweb/unison https://github.com/unisonweb/unison
- chriswarbo 6y agoThere are multiple ways to do it, e.g. spreading data and parentheses across multiple lines to work better with line-based tools like git, or keeping revisions in the files themselves, etc. but most approaches require translation back and forth, which is a burden on those trying to handle the data (e.g. viewing diffs, bisecting to pin down a bug, etc.).