3 ms·
Interacting with generated code is never going to be as nice as hand-written code. It is a tradeoff to express semantics that exist in the interface definition
by jrockway 7y ago
Interacting with generated code is never going to be as nice as hand-written code. It is a tradeoff to express semantics that exist in the interface definition language and the n- languages that the generator targets.
Go and "oneof" in protos is always fun: https://github.com/jrockway/ekglue/blob/master/pkg/glue/glue.go#L150 https://github.com/jrockway/ekglue/blob/master/pkg/glue/glue...
But it's better than saying "welp, that program is written in c++, so you have to write your tools that interface with it in c++ as well."