GithubHelp home page GithubHelp logo

Unify Named with ThriftType about thrifty HOT 3 CLOSED

microsoft avatar microsoft commented on May 21, 2024 1
Unify Named with ThriftType

from thrifty.

Comments (3)

benjamin-bader avatar benjamin-bader commented on May 21, 2024 1

You and I arrived at the same conclusion; I've ended up with both TypedefType and ServiceType extending UserType. The final hierarchy, then, is

ThriftType
|__BuiltinType (bool,byte,i8,i16,i32,i64,double,string,binary)
|__ListType
|__SetType
|__MapType
|__UserType
|  |__EnumType
|  |__StructType (struct, union, exception)
|  |__TypedefType
|  |__ServiceType

from thrifty.

benjamin-bader avatar benjamin-bader commented on May 21, 2024

So - the proposed hierarchy would be:

ThriftType
|__BuiltinThriftType (bool,byte,i8,i16,i32,i64,double,string,binary)
|__ListThriftType
|__SetThriftType
|__MapThriftType
|__TypedefThriftType
|__UserThriftType
|  |__EnumThriftType
|  |__StructThriftType (struct, union, exception)
|__ServiceThriftType

UserThriftType and ServiceThriftType, and Constant will tentatively implement an interface exposing the same things that Named does currently - Location and Javadoc.

Program would be more or less the same, but everything from Linker down changes. Codegen will presumably be different, though I haven't thought much about it.

from thrifty.

ZacSweers avatar ZacSweers commented on May 21, 2024

After what we discussed about Typedefs, should they maybe straddle the line with UserThriftType a bit more?

from thrifty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.