Skip to content

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

@drewnoakes

Description

@drewnoakes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions