3 ms·
An AST is a tree as much as the directory structure currently encoded in git. It shouldn't be hard to build a bijective mapping between a file system and AST.
by ongy 8mo ago
An AST is a tree as much as the directory structure currently encoded in git.
It shouldn't be hard to build a bijective mapping between a file system and AST.
- conartist6 8mo agoRight, but for what purpose? I don't see much gain, and now you're left trying to fit a square peg into a round hole. The git CLI would be technically working, but not practically useful. Same with an IDE: if you checked the files out you could technically open them but not easily change your program.
- ongy 8mo agothe git server would continue to work. The cli really isn't the greatest either way. But there's lots of infrastructure to make the sharing work reasonably well.
- conartist6 8mo agoYou could also think of it this way: if I abuse git's protocols to do my thing, I pretty much give up my chance to become a standard in the future. If people are going to adopt a new standard they want it to be clean: you don't want to be trying to sell a greenfield technology that's loaded up with legacy tech debt. Making a data format that renders broken in every existing tool that touches it would be showing a lot of bad faith up front.