You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Matt Nathan (JIRA)" <ji...@apache.org> on 2017/12/05 14:16:01 UTC
[jira] [Created] (THRIFT-4409) Void typed fields in union (aka set
without a value)
Matt Nathan created THRIFT-4409:
-----------------------------------
Summary: Void typed fields in union (aka set without a value)
Key: THRIFT-4409
URL: https://issues.apache.org/jira/browse/THRIFT-4409
Project: Thrift
Issue Type: New Feature
Components: Compiler (General)
Affects Versions: 0.10.0
Reporter: Matt Nathan
Priority: Minor
It would be a nice addition to the language if thrift supported a {{void}} field type for unions, this would be used for fields that are set but without a value, i.e. the act of setting it is all the information that is required. Take this example:
{code}
union Query {
// Find only this item
1: string only;
// Find any of these items
2: list<string> anyOf;
// Find all of these items
3: list<string> allOf;
// Every item
4: void all;
}
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
Re: [jira] [Created] (THRIFT-4409) Void typed fields in union (aka
set without a value)
Posted by Joshua Garvin Kaldon <jk...@gmail.com>.
I've logged into Jira and cannot find any way to unsubscribe from these
messages. Please help!
Thanks,
- Joshua
_______________________________________________________
Joshua Kaldon, Senior Software Engineer
On Tue, Dec 5, 2017 at 8:16 AM, Matt Nathan (JIRA) <ji...@apache.org> wrote:
> Matt Nathan created THRIFT-4409:
> -----------------------------------
>
> Summary: Void typed fields in union (aka set without a value)
> Key: THRIFT-4409
> URL: https://issues.apache.org/jira/browse/THRIFT-4409
> Project: Thrift
> Issue Type: New Feature
> Components: Compiler (General)
> Affects Versions: 0.10.0
> Reporter: Matt Nathan
> Priority: Minor
>
>
> It would be a nice addition to the language if thrift supported a {{void}}
> field type for unions, this would be used for fields that are set but
> without a value, i.e. the act of setting it is all the information that is
> required. Take this example:
>
> {code}
> union Query {
> // Find only this item
> 1: string only;
> // Find any of these items
> 2: list<string> anyOf;
> // Find all of these items
> 3: list<string> allOf;
> // Every item
> 4: void all;
> }
> {code}
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.4.14#64029)
>