Hi

Is there any big downside to marking all fields optional in proto3 besides 
the slightly larger resulting wire format?
In our case, we will use Protobuf/gRPC for server-to-server communication, 
where a bit of network overhead doesn't matter.

Knowing whether a field has been populated seems like a nice benefit of 
marking fields optional, and it also appears to be the default for the 
"2023 edition” version.

I'm wondering if marking all fields as optional would be considered an 
anti-pattern and if this shouldn't be necessary if the messages are better 
structured.

Thanks
Jeppe

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/protobuf/c012cb4e-1057-4c79-9ca4-3454afd1e3ffn%40googlegroups.com.

Reply via email to