3 ms·
> At the risk of revealing my lack of a CompSci degree: what if ‘source code’ were replaced serialized syntax trees? I really don't want to be "that guy", but
by seanmcdirmid 14y ago
> At the risk of revealing my lack of a CompSci degree: what if ‘source code’ were replaced serialized syntax trees?
I really don't want to be "that guy", but this is an old idea in programming languages, going all the way back to the Cornel program synthesizer days.
Here is a recent debate that discusses the issues:
http://programmers.stackexchange.com/questions/119095/why-dont-we-store-the-syntax-tree-instead-of-the-source-code http://programmers.stackexchange.com/questions/119095/why-do...
- mwsherman 14y agoYep, I was sure it’s not an original idea. Though that particular link seems to be about a universal, language-agnostic syntax tree. Also interesting, but I wasn’t even intending to be that ambitious. I’d limit the scope to individual languages, and let those communities debate the ‘right’ serialization.
- seanmcdirmid 14y agoThe problem is one of cost benefit: the costs are high in terms of tooling while the benefits do not seem to be big enough. Intentional Software was a whole company founded on this idea and it hasn't really gone anywhere. There is a small trend back toward looking at structured editors; in that case you have no choice but to serialize a tree.