3 ms·
XML vs. Google's new protobufs
- moocha 18y agoMr. Harold is missing the point here. Protocol buffers are not meant to replace XML as a "public" API transport, they are meant to replace it on backend solutions, where one entity controls both endpoints.
- bayareaguy 18y agoHowever although I do see wire format documentation on Google's site, I don't see an actual BNF grammar anywhere and that makes me nervous. So what? The .proto file may not be a BNF grammar but it tells an application what to expect and presumably the generated code can check for validity. e.g. message Person { required int32 id = 1; required string name = 2; optional string email = 3; } Is that really any different from <Person> ::= <id> <name> | <id> <name> <email> ... ?