[
https://issues.apache.org/jira/browse/THRIFT-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689600#action_12689600
]
Mathias Herberts commented on THRIFT-409:
-----------------------------------------
I can't really view the semantics and uses of this. If we take the semantics of
a C union, wouldn't
union MyUnion {
1: string a_string,
2: i32 an_i32,
}
be roughly equivalent to
struct MyUnion {
1: optional string a_string,
2: optional i32 an_i32,
}
with exclusion constraints enforced at the app level?
> Add "union" to Thrift
> ---------------------
>
> Key: THRIFT-409
> URL: https://issues.apache.org/jira/browse/THRIFT-409
> Project: Thrift
> Issue Type: New Feature
> Reporter: Bryan Duxbury
> Fix For: 0.2
>
>
> It would be very helpful to have a "union" construct in Thrift. Let's decide
> on the design and then break up into sub-issues to add this feature.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.