cm0002@lemmy.world to Programmer Humor@programming.dev · 19 hours agoWhat's stopping you from writing your Rust like this?lemmy.mlimagemessage-square53fedilinkarrow-up1329arrow-down16cross-posted to: programmerhumor@lemmy.ml
arrow-up1323arrow-down1imageWhat's stopping you from writing your Rust like this?lemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 19 hours agomessage-square53fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squareCanadaPlus@lemmy.sdf.orglinkfedilinkarrow-up3·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.
minus-squaredjehuti@programming.devlinkfedilinkarrow-up1·35 minutes agoOr by including comments in the parse tree. (& Yes, it is done various places for various languages and formats.)
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.)