▲ | rkagerer 6 days ago | ||||||||||||||||||||||
More direct link to the juicy bit: https://github.com/stepchowfun/typical?tab=readme-ov-file#as... An asymmetric field in a struct is considered required for the writer, but optional for the reader. | |||||||||||||||||||||||
▲ | sdenton4 6 days ago | parent [-] | ||||||||||||||||||||||
That's a nice idea... But I believe the design direction of proto buffers was to make everything `optional`, because `required` tends to bite you later when you realize it should actually be optional. | |||||||||||||||||||||||
|