thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Pennebaker <apenneba...@42six.com>
Subject Re: Reducing namespace boilerplate?
Date Wed, 11 Sep 2013 18:36:01 GMT
Works for me! I just wish this were documented better.


On Wed, Sep 11, 2013 at 12:48 PM, Ben Craig <bencraig@apache.org> wrote:

> I think (but I'm not sure) that "namespace * com.blah.blah" will do what
> you want.
>
>
>
> From:   Andrew Pennebaker <apennebaker@42six.com>
> To:     Thrift Users <user@thrift.apache.org>,
> Date:   09/11/2013 09:59 AM
> Subject:        Reducing namespace boilerplate?
>
>
>
> If I want my .thrift to be compatible with C++ and Java, I think I have to
> write both:
>
> namespace cpp com.blah.blah
>
> and:
>
> namespace java com.blah.blah
>
> Which seems redundant when the namespaces are the same. I'd much rather
> write something like:
>
> namespace com.blah.blah
>
> And just let all languages use the same namespace scheme. But thrift 0.9.0
> doesn't seem to support this, throwing an empty compile error about
> syntax.
>
> Is there a way to do this in current Thrift? Are there plans in the future
> to support the syntax I'm after?
>
>
>

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