<div><br><div class="gmail_quote"><div dir="auto">Le mer. 15 nov. 2017 à 06:20, Nico Williams <<a href="mailto:nico@cryptonector.com">nico@cryptonector.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, Nov 15, 2017 at 09:27:04AM +0800, Chu Ka-cheong wrote:<br>
> When protobuf first released, it's main feature is the<br>
> interoperability between different iterations of the same protocol.<br>
><br>
> Consider you have a message like this at the beginning?<br>
><br>
> struct People {<br>
>   name: String<br>
>   address: String<br>
> }<br>
><br>
> With ASN.1 you would probably encode it as a SEQUENCE. However, how<br>
> would you specify it if you know you will likely add new fields to it<br>
> in a V2 release maybe a week later?<br>
<br>
By using extensibility markers.  Which Protocol Buffers.. does not have.<br>
<br>
  People ::= SEQUENCE {<br>
    name UTF8String,<br>
    address UTF8String,<br>
    ...<br>
  }<br>
</blockquote><div dir="auto"><br></div><div dir="auto">Correct. Or by declaring the module as EXTENSIBILITY IMPLIED, or simply by using BER/DER (where extensibility is implied in the deciding phase even if the module doesn't declare it).</div><div dir="auto"><br></div></div></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature">Erwann.</div>