Y
Hacker News
new
|
ask
|
show
|
jobs
by
gabetax
2332 days ago
You can implement emptiness with the wrapper message types, e.g. StringValue:
https://github.com/protocolbuffers/protobuf/blob/master/src/...
and sometimes defining your own, e.g. nullable lists.
It's not elegant, but it is simple.
1 comments
m0zg
2332 days ago
But the point is, proto2 had this feature, and it worked without any hacks.
link