@Jonathan_Blow FFT:audio::CFG:code
Because C-like languages can't tell the difference between certain parses until after types are known.
-
-
(And by "types are known" I mean knowing whether an identifier refers to a type or not)
-
well, couldn't this be remedied with multiple passes?
- Show replies
New conversation -
-
-
Even in C we don't need pausable parsers. The meaning of the AST can be resolved after the parse.
-
But that just kicks the can down the line. Now the "AST parser" has to be pausable :)
- Show replies
New conversation -
-
-
Careful syntax design avoids that. I imagine C was only this way due to BCPL's 1 pass compiler
-
Go's parser is 100% independent of type env: https://golang.org/pkg/go/ast/ & https://golang.org/pkg/go/types/
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.