Mr. 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.
However 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;
}
2 comments
[ 2.9 ms ] story [ 12.5 ms ] threadSo 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.
Is that really any different from