thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Boisvert <a...@bizo.com>
Subject Re: heterogeneous collections
Date Mon, 03 May 2010 15:42:21 GMT
On Mon, May 3, 2010 at 7:09 AM, Bryan Duxbury <bryan@rapleaf.com> wrote:

> There is already a totally viable workaround, though - make a Union of the
> types you want in your collection, and then make the field list<YourUnion>.
> You get basically all the capabilities with very few drawbacks, plus the
> ability to include multiple logical "types" in the collection, not just
> physical types. Of course, if you literally need "any" possible object to
> go
> into the collection, then this won't do it for you.
>

Thanks for the suggestion, Bryan.

I'm experimenting with marshalling my values to strings (I only deal with
basic types such as int32, int64, strings) right now.   If that doesn't
work, I'll go with your suggestion.

alex

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message