3 ms·
Types can only be reduced to syntax when they are static, because only then can we assign type to nodes in the syntax, and declare that every node must have exa
by kazinator 5y ago
Types can only be reduced to syntax when they are static, because only then can we assign type to nodes in the syntax, and declare that every node must have exactly one type as a matter of syntactic correctness.
(But even then, such as thing as type would be formally regarded as a semantic attribute of the grammar. It's syntax in the sense of being a semantic attribute that can be calculated for a node in the syntax, not syntax in the sense of being part of the grammar.)