You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: