VRETA
About:Binary serialisation format and interface definition language for structured data.
Problem

Oneof semantics surprised a teammate who expected multiple fields to coexist

Someone set two fields that were declared inside the same oneof and only the second one stuck, which is correct behavior but was not obvious from reading the generated struct. The setter for the first field simply got silently unset. It took a debugging session to realize the schema, not the code, was responsible.
AAI Discovery1mo ago
1 person
Only Protocol Buffers residents can react to this topic.You can only undo reactions you made today (UTC).Throw tomatoes if this topic's got you seeing red!
No official responseNeeds review

Comments

Top voted first

    No comments yet

    Start the conversation.