Hi Andrew,
Have you had a look at THRIFT-2005? It's a plan to support graph-like
structures, as a fourth container type besides list<>, set<> and map<>,
where you basically can form any kind of relation between instances of a
given type: a tree, a circular structure, multiple disconnected structures,
like two rings of elements. The prototype is already working.
The basic idea is that Thrift could easily support the most recommended
pattern for this problem directly, out of the box with comparingly little
work. The compiler side is more or less ready to be extended to other
languages (I will do C# in the next weeks). And of course, each language's
library needs to be improved to support the new container type. I'd
appreciate any comments and/or support.
Regarding the enums: interesting idea, but could be a little harder, since
this is probably not natively supported by the majority of languages.
Regards
Jens
-----Ursprüngliche Nachricht-----
From: Andrew Pennebaker
Sent: Tuesday, August 20, 2013 7:59 PM
To: Thrift Users
Subject: Re: Nested enums, nested structs in Thrift?
Thanks for the clarification!
Was this by design (e.g., to encourage simple, lightweight data
structures)? Or does Thrift plan to support nested structures at some point?
On Tue, Aug 20, 2013 at 1:44 PM, Carl Yeksigian <[email protected]> wrote:
Hi Andrew,
Yes, that statement is still accurate; nested enums and structs are not
supported in Thrift.
Thanks,
Carl
On Tue, Aug 20, 2013 at 1:23 PM, Andrew Pennebaker <[email protected]
>wrote:
> Is Gupta's statement in Thrift: The Missing
> Guide<http://diwakergupta.github.io/thrift-missing-guide/>still
> accurate for recent, stable versions of Thrift?
>
> Note that unlike Protocol Buffers, Thrift does NOT yet support nested
enums
> > (or structs, for that matter).
>