Re: Generics in Thrift

2022-03-21 Thread Andrew Matheny
Thanks Jens, It's great to hear interest in this. I was hoping that there might be some existing patterns to follow in terms of extending the grammar that would fall somewhere between "do it yourself" and "add full support upstream" but this may have been overly wishful thinking. We are currently

Re: Generics in Thrift

2022-03-19 Thread Jens Geyer
Hi, first I would like to move this topic to the dev list, it seems more appropriate. Extending the grammar and also the relevant data structures is certainly doable, I have little doubt about this point. However, experience shows that extending a grammar is usually only the first and usua

Re: Generics in Thrift

2022-03-18 Thread Randy Abernethy
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 wrote: > Hello Thrift users, > > My company is heavily invested in Thrift and would like to extend the > language to al

Generics in Thrift

2022-03-18 Thread Andrew Matheny
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 { 1: optional base.Res