@cm0002 to Programmer [email protected] • 18 hours agoWhat's stopping you from writing your Rust like this?lemmy.mlimagemessage-square51arrow-up1325arrow-down16
arrow-up1319arrow-down1imageWhat's stopping you from writing your Rust like this?lemmy.ml@cm0002 to Programmer [email protected] • 18 hours agomessage-square51
minus-square@[email protected]linkfedilink4•6 hours agoWow, so this is possible. Formatting is so damn arbitrary. Somebody has to have tried storing just the parse tree on disk, right?
minus-square@[email protected]linkfedilink2•5 hours agoIf you do that, you lose formatting and comments every time you load the source from disk
minus-square@[email protected]linkfedilink2•edit-23 hours agoLosing 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.
Wow, so this is possible.
Formatting is so damn arbitrary. Somebody has to have tried storing just the parse tree on disk, right?
If you do that, you lose formatting and comments every time you load the source from disk
Losing 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.