-
Notifications
You must be signed in to change notification settings - Fork 144
Open
Description
Background
The Protocol Buffers best practices guide recommends including an unspecified value in enums:
Do Include an Unspecified Value in an Enum
Enums should include a defaultFOO_UNSPECIFIED
value as the first value in the declaration.
However, the explanation primarily references proto2 behavior and examples.
Question
Does this best practice equally apply to proto3?
Context
- The current documentation focuses on proto2-specific examples
- The proto3 enum documentation mentions default behavior but doesn't explicitly reference this best practice
Expected Outcome
It would be helpful to clarify that this best practice applies to both proto2 and proto3, perhaps by adding a note that this recommendation is applicable to both protocol buffer versions.
Metadata
Metadata
Assignees
Labels
No labels