8 ms·
I think there's a useful distinction between serialization format and working format (that is, what it looks like in RAM). For a plain text editor, they're the
by wpietri 11y ago
I think there's a useful distinction between serialization format and working format (that is, what it looks like in RAM). For a plain text editor, they're the same. But that's pretty unusual.
There's reason we couldn't have an editor that works with the AST while saving everything out in plain text for interchange purposes.
- the_af 11y agoTrue. But the property you mention -- that for plain text editors the serialization and working formats are the same -- is actually a pretty useful and convenient property! I think this is why it's extremely unlikely there will ever be widespread adoption of a different format for source code. Niche tools will remain niche forever, in my opinion.