Say message A has "repeated B b = ...", we have to do
*a.add_b() = another_b_instance;
or the deprecated
*a.add_b()->CopyFrom(another_b_instance);
Why not just let us do something like:
a.add_b(another_b_instance);
And not just C++, this seems to be the paradigm in other language as well.
I am curious about the design consideration. Thanks!
-Xiaofeng
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.