On Thu, Mar 17, 2011 at 5:22 PM, Henner Zeller <[email protected]> wrote: > On Thu, Mar 17, 2011 at 02:41, ctapobep <[email protected]> > wrote: >> So pity protobuf doesn't support inheritance, only because of this I >> can't use it. Any forecasts, are creators going to add this feature? > > There are good reasons not to support inheritance and it would be a > design problem if it was; so it is likely not supported. > > Typically if someone has the reflex to use inheritance, they actually > mean to do something else. So what is the exact use case you want to > address ?
This. Protobufs are basically pure data structures, with no behaviour, so inheritance is basically meaningless. Protobuf has other mechanisms for doing reuse. -- Chris -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
