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

Adopt external tagging to serialized union values #266

Open
kanghyojun opened this issue May 11, 2018 · 0 comments
Open

Adopt external tagging to serialized union values #266

kanghyojun opened this issue May 11, 2018 · 0 comments
Labels
cat:lang Category: Language design cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) dfct:easy Difficulty: Easy

Comments

@kanghyojun
Copy link
Member

kanghyojun commented May 11, 2018

serde which is Rust's serialization/deserialization library give a option to represent enum. A deserializer doesn't need to read a whole JSON to know which tag is to deserialize if Nirum has a similar feature for Union type.

@kanghyojun kanghyojun added dfct:easy Difficulty: Easy cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) cat:lang Category: Language design labels May 11, 2018
@dahlia dahlia changed the title Change serialized format of union to Externally tagged Adopt external tagging to serialized union values May 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:lang Category: Language design cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) dfct:easy Difficulty: Easy
Projects
None yet
Development

No branches or pull requests

1 participant