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

Provide a way to (de)serialize metas #65

Closed
dlurton opened this issue Feb 24, 2022 · 1 comment
Closed

Provide a way to (de)serialize metas #65

dlurton opened this issue Feb 24, 2022 · 1 comment

Comments

@dlurton
Copy link
Contributor

dlurton commented Feb 24, 2022

Currently, metas associated with an IonElement are lost when the element is round-tripped through Ion binary or text formats and back again. Thus, it is up to the application to provide a way to persist metas, if the application cares about them, but this library probably should provide some assistance here--such as APIs to specify functions that (de)serialize metas.

element_with_metas::(
     (lit 42) --the original node
     { '$source_location': (1, 1) } -- the meta information associated with the original node.
)
@dlurton
Copy link
Contributor Author

dlurton commented Feb 24, 2022

Oops, duplicates #20

@dlurton dlurton closed this as completed Feb 24, 2022
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

1 participant