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

Allow evolution from T to Union<T,U> #23

Open
drewnoakes opened this issue Nov 18, 2016 · 0 comments
Open

Allow evolution from T to Union<T,U> #23

drewnoakes opened this issue Nov 18, 2016 · 0 comments

Comments

@drewnoakes
Copy link
Member

It seems reasonable that a single type might, over time, become a union of types.

The wire representation doesn't carry enough information to know which of the union types was sent.

Using the first type of the union by convention might suffice.

This would not work if T is an array however. Is there a safer way to model unions? MsgPack extensions seem sensible, but they require embedding a length which complicates encoding. Ideally you want an extension sentinel, not container.

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