Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A “nondestructive” or modifying serializer #8

Open
ModProg opened this issue Apr 17, 2023 · 2 comments
Open

A “nondestructive” or modifying serializer #8

ModProg opened this issue Apr 17, 2023 · 2 comments

Comments

@ModProg
Copy link
Collaborator

ModProg commented Apr 17, 2023

I was experimenting with this idea for TOML (https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=dbda15adfbdf58defcaf2c5707a3a033).
While obviously worse from a performance standpoint, I think having a Serializer that preserves whitespace and comments if possible and only updates modified values could be quite neat.

@ecton
Copy link
Member

ecton commented Apr 18, 2023

could be quite neat

Yes, yes it could. I delegate this task to you though, because I really don't want to try to implement it :)

@ModProg
Copy link
Collaborator Author

ModProg commented Apr 18, 2023

No worries, I'll look into it :D when we have a value type that can lossless describe an rsn file, this should be very doable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants