cm0002@lemmy.world to Programmer Humor · 1 day agoWhat's stopping you from writing your Rust like this?lemmy.mlimagemessage-square57fedilinkarrow-up1375arrow-down18cross-posted to: [email protected]
arrow-up1367arrow-down1imageWhat's stopping you from writing your Rust like this?lemmy.mlcm0002@lemmy.world to Programmer Humor · 1 day agomessage-square57fedilinkcross-posted to: [email protected]
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up3·edit-210 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.
minus-squaredjehutilinkfedilinkarrow-up3·8 hours agoOr by including comments in the parse tree. (& Yes, it is done various places for various languages and formats.)
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up1·edit-26 hours agoDo you have some examples? (That is what I meant by giving them a symbol, maybe I worded it poorly)
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.
Or by including comments in the parse tree. (& Yes, it is done various places for various languages and formats.)
Do you have some examples?
(That is what I meant by giving them a symbol, maybe I worded it poorly)