There are some suggestions here:
https://stackoverflow.com/questions/16845752/generic-objects-in-apache-thrift/16859156#16859156

On Fri, Mar 18, 2022 at 12:39 PM Andrew Matheny
<[email protected]> wrote:

> Hello Thrift users,
>
> My company is heavily invested in Thrift and would like to extend the
> language to allow for more standardization across all of our APIs.  We are
> particularly interested in adding support for generic structs.  For
> example:
>
> template ListResourcesResponse<Resource> {
>   1: optional base.ResponseStatus status;
>   2: optional i32 skip;
>   3: optional i32 limit;
>   4: optional i32 total;
>   5: optional list<Resource> results;
> }
>
> We have prototyped this by extending the parser we're using but we'd like
> to explore what options are available via the community before
> committing to a non-standard thrift dialect. My questions to this group
> would be:
> * Does anyone have any experience with something like this? Either in
> generics specifically or in extending the standard grammar.
> * What would be the process for updating the Apache maintained grammar to
> include an additional feature like this?
>


-- 

Randy Abernethy
Managing Partner
RX-M, [email protected]
o 415-800-2922
c 415-624-6447

Reply via email to