why string/ByteString instead of byte[]

46 views
Skip to first unread message

yuneng xie

unread,
May 5, 2021, 9:11:56 AM5/5/21
to Protocol Buffers
Hello everyone,

i'm confused that protobuf is using string/ByteString for bytes in all supported language except golang.  In golang ,  [ ] byte is used for bytes.  

why the difference ?
 is string  sutiable for hold arbitrary byte array ?

any clue about this would be really appreciated ! 

Thanks 

Reply all
Reply to author
Forward
0 new messages