4 ms·
Yeah, I think it's best to first rethink of null as just, not 0 and not any other number. What that means depends on the context. Tangent: I've seen an antipat
by hot_gril 2y ago
Yeah, I think it's best to first rethink of null as just, not 0 and not any other number. What that means depends on the context.
Tangent: I've seen an antipattern of using enums to describe the "type" of some polymorphic object instead of just using a oneof with type-specific fields. Which gets even worse if you later decide something fits multiple types.
- jakjak123 2y agoI love oneofs in the language with good support, but they are woeful in Golang and the "official" grpc-web message types.