They're effectively the same -- it's just a style question.  If B only makes
sense in the context of A, I'd go with the second version, otherwise I'd go
with the first.  But the generated code should be the same except for the
name of B in the generated code.

2010/9/8 alf <alberto....@gmail.com>

> what is different o what is recommended
>
> is the same ?
>
>
> message A
> {
> optional string stuff = 1
> repeated message A = 2
> }
>
> message B
> {
> optional string stuff=1
> }
>
> or
>
>
> message A
> {
>  optional string stuff = 1
>  repeated message A = 2
>  message B
>   {
>    optional string stuff=1
>   }
>
> }
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to