Giter VIP home page Giter VIP logo

Comments (6)

lukebakken avatar lukebakken commented on July 30, 2024

It looks like #34 implemented at least some of this, but I'm not sure why we're not seeing -export_type in files like this one

from gpb.

lukebakken avatar lukebakken commented on July 30, 2024

@JeetKunDoug - I found the option here. Giving it a try now.

from gpb.

lukebakken avatar lukebakken commented on July 30, 2024

Yep, type_specs is the correct option. @tomas-abrahamsson I'll open a PR to add that to the README.

from gpb.

tomas-abrahamsson avatar tomas-abrahamsson commented on July 30, 2024

For each record type defined, also define and export a type for that record.

@JeetKunDoug This is done when gpb compiles to use maps instead of records, but for records, I reasoned that one could just use #msg{}. I'd like to learn your reasoning for wanting each msg to be an exported type also for the record case?

For any field in a record, also include type information for that field.

The type_specs option does this (or -type cmd line flag/switch). Thanks to @lukebakken for providing this info.

@lukebakken, regarding a PR for README, I think the options that could need some highlighting (ie options most missed/overlooked) are:

  • type_specs (-type)
  • use_packages (-pkgs)
  • and perhaps strings_as_binaries (-strbin)

from gpb.

lukebakken avatar lukebakken commented on July 30, 2024

OK, thanks for the suggestions @tomas-abrahamsson

from gpb.

tomas-abrahamsson avatar tomas-abrahamsson commented on July 30, 2024

I assume this means you're ok with the current state, hence closing this issue. If I misunderstood, please just re-open.

from gpb.

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.