|
|
|
|
|
by skybrian
501 days ago
|
|
Thanks for the clarification! That sounds about as evolvable as JSON or any system that uses string keys (like HTTP headers). Protobufs have an extra level of indirection built in: code refers to fields using names, but numbers are sent on the wire. Without convenient access to field numbers, they can’t as easily be hard-coded. This also strongly encourages using the schema file for most tasks. With protobufs (or similar), any user-friendly editor will need a schema to make sense of the data. JSON-like systems and protobufs have opposite design goals: encouraging versus discouraging schemaless data access. |
|