What's stopping you from writing your Rust like this?
What's stopping you from writing your Rust like this?


You're viewing a single thread.
Wow, so this is possible.
Formatting is so damn arbitrary. Somebody has to have tried storing just the parse tree on disk, right?
8 0 ReplyIf you do that, you lose formatting and comments every time you load the source from disk
2 0 ReplyLosing formatting other than what you've set in your deparser would be the point. Losing comments would be bad, but that seems easily fixable just by giving each comment block a symbol that points to it's contents.
3 0 ReplyOr by including comments in the parse tree. (& Yes, it is done various places for various languages and formats.)
3 0 ReplyDo you have some examples?
(That is what I meant by giving them a symbol, maybe I worded it poorly)
1 0 Reply
The closest thing I've seen is Combobulate
2 0 Reply