[
https://issues.apache.org/jira/browse/THRIFT-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689582#action_12689582
]
Bryan Duxbury commented on THRIFT-409:
--------------------------------------
For the IDL portion, I think we should do:
{code}
union <union name> {
<field id>: <type> <field name> <optional line ender>
}
{code}
An example would look like:
{code}
union MyUnion {
1: string a_string;
2: i32 an_i32;
}
{code}
> 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.