4 ms·
I remember someone mentioning a system that operated with ASTs like this in the 70s or 80s. One of the affordances is that the source base did not require a lin
by hosh 7mo ago
I remember someone mentioning a system that operated with ASTs like this in the 70s or 80s. One of the affordances is that the source base did not require a linter. Everyone reading the code can have it formatted the way they like, and it would all still work with other people’s code.
- skybrian 7mo agoIt seems like that could be done in the editor if you auto-reformat on load and save. (Assuming there's an agreed-on canonical format.)
- deleted 7mo ago[deleted]
- hosh 7mo agoThe point is that in an AST based storage, the AST itself is the source of truth. Therefore, there is no canonical format.