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

Add customization of how struct fields (and other things?) are represented? #73

Open
elidupree opened this issue Feb 5, 2021 · 0 comments
Labels
serde Affects serde-lexpr

Comments

@elidupree
Copy link

SerAPI represents struct fields as (name value) (inheriting that behavior from Sexplib, I think), while serde-lexpr represents them as (name . value).

To make serde-lexpr compatible with more kinds of S-expressions, would it make sense to add a customization option that controls which way struct fields are represented? This seems comparable to how serde allows configuration about how enums should be tagged.

@rotty rotty added the serde Affects serde-lexpr label Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
serde Affects serde-lexpr
Projects
None yet
Development

No branches or pull requests

2 participants