Comments in protocol buffers

1,579 views
Skip to first unread message

Krzysztof Kurnicki

unread,
Aug 25, 2016, 3:28:31 PM8/25/16
to Protocol Buffers
Again question about comments. 
The format of comments in .proto is not defined in language references:
https://developers.google.com/protocol-buffers/docs/reference/proto2-spec
https://developers.google.com/protocol-buffers/docs/reference/proto3-spec

Style section recommends usage of C++ style comments.
On the other hand C style comments seem to work.

Can it be assumed that both C++ and C style comments are and will be supported?

Feng Xiao

unread,
Aug 25, 2016, 4:47:44 PM8/25/16
to Krzysztof Kurnicki, Protocol Buffers
Yes, both C++ and C style comments are supported, but just as the style guide recommends, it's recommended to use C++ style comments.
 

--
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 protobuf+unsubscribe@googlegroups.com.
To post to this group, send email to prot...@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages