ASTs typically discard comments, and that's usually what you want.
The only time (AFAICS) that preserving comments is useful is for writing a code formatter.
Could you write a formatter in terms of a list of lexemes? A CST is a non-trivial bit of code for one use case.
miniblog.
Related Posts
Which programming languages follow the "cathedral" design philosophy, where they provide most of: the runtime, stdlib, debugger, LSP, test harness, code formatter and package manager?
Go, Dart and Smalltalk are the closest I can think of.
Shower thought: if you have a code formatter, you don't need to ever insert newlines yourself.
You could repurpose the enter key for something else entirely!
What would you use this large key for? My first idea is go-to-definition.
Writing a correct, robust and performant code formatter is really hard. A fantastic post from dartfmt's maintainer: http://t.co/zVnQxAEa27