Re:Gunk: Modern front end and syntax for Protocol Buffers
by atombender on Saturday January 19, 2019 @09:07PM
(#18950481)
No, "oneof" increases type safety. "oneof" describes mutually exclusive fields. For example:
With this in place, a client has to check the type of the filter in order to access the actual filter:
Without it, you can get into a situation where it's possible to create invalid combinations:
Now you can accidentally end up with code like this:
or:
[ Parent
| on HN ]
There are no comments on this comment yet.