[protobuf] Best way to organize collections?

2012-07-20 Thread Ditat
Let's say I have .proto like this: message Dummy { required Attributes DummyAttributes = 1; required string DummyString = 2; repeated Attribute DummyAttributes2 = 3; } message Attributes { repeated Attribute List = 1; } message Attribute { required string Name = 1;

Re: [protobuf] Best way to organize collections?

2012-07-20 Thread Christopher Smith
Three points: There isn't much value in your Attributes message, so DummyAttributes2 would be the way I'd go. List is probably not an ideal name for an field, as it may overlap with other names depending on programming language. Per the style guide, field names should be like_this, not

RE: [protobuf] Best way to organize collections?

2012-07-20 Thread Ivan Demkovitch
to leave this part as is.. *From:* Christopher Smith [mailto:cbsm...@gmail.com] *Sent:* Friday, July 20, 2012 8:46 PM *To:* Ditat *Cc:* protobuf@googlegroups.com *Subject:* Re: [protobuf] Best way to organize collections? Three points: There isn't much value in your Attributes message, so