3 ms·
`required` was removed due to the challenges it introduces in designing backwards-compatible API changes[1]. [1] https://github.com/protocolbuffers/protobuf/is
by ntenenz 7y ago
`required` was removed due to the challenges it introduces in designing backwards-compatible API changes[1].
[1] https://github.com/protocolbuffers/protobuf/issues/2497#issuecomment-267422550 https://github.com/protocolbuffers/protobuf/issues/2497#issu...
- docker_up 7y ago"Required" fields that are no longer required, and "optional" fields that are no longer optional are basically 6 of one and half a dozen of another. I'm personally strongly in the "required" camp because at least the interface makes an attempt at giving clues to a user as to what fields are important. If everything is optional, there's no information being passed as to what is important anymore.