Re:Gunk: Modern front end and syntax for Protocol Buffers
by xyzzy_plugh on Saturday January 19, 2019 @03:52AM
(#18946057)
Your points are valid, but ultimately an API is defined by its semantics in addition to data types. For anything beyond extremely primative RPC, you have to read the docs anyways.
Moving to proto3 means putting all your validation in one place, your serialization primitives in one place, and your docs in one place, instead of smattering them all over. It's a lot less error prone and way more maintenance friendly.
Re:Gunk: Modern front end and syntax for Protocol Buffers
by joshuamorton on Saturday January 19, 2019 @04:29AM
(#18946155)
Why is `// required, the server will respond with a failure if this argument isn't provided` in the .proto file enough documentation? That's usually what I go to.
If I lose oneof too, I might as well be using JSON.