1. more plain and then readable code
2. compile time const is irreplaceable for many C++ code, such as array
bound and template value parameter.
3. safety, default value can be changed careless.
> Field options can provide this capability unless you are really looking
> for the ability to just not type the same value? I would think the default
> value and field options would work. It is possible I don't fully
> understand your use case.
> On Thursday, January 24, 2013 9:23:39 AM UTC-8, prot...@googlecode.comwrote:
>> Comment #11 on issue 60 by chen3f...@gmail.com: Support static values
>> in .proto files
>> Support constant in proto is very useful
>> const int64 DefaultType = 1000;
>> optional int64 type = 1 [default=DefaultType];
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.