I'm increasingly persuaded that languages implementations should not expose an AST and probably shouldn't have it in the stdlib either.
Static analysis tools need a richer data structure, and want to parse different language versions. It's better as a standalone library.
Related Posts
Choosing a syntax for a new programming language is hard. You want to be similar enough to an established language to avoid scaring off users.
You still want to be sufficiently novel to be recognisable. Which languages do this well?
Superb discussion of Go semantics for `for` loop variables, the challenges of breaking changes, and the tradeoffs of static analysis:
https://github.com/golang/go/discussions/56010
Difftastic 0.26 is out!
* Added Gleam, YAML and Zig, improved Clojure
* Language detection can now be overridden
* Better display, better highlighting, and some better diff heuristics :)