Open mejohnnaylor opened 7 months ago
LMK what you think of this approach, JP.
is_final is not very descriptive since it doesn't really say what is final. How about something more along the lines of: variation_immutable
Happy to spitball more options.
okay - so you're also not going to go for 'static variation'?
"mutable_at_runtime": bool // probably provides most clarity (or "runtime_mutable"), and has the benefit of being false (i.e.) safe by default.
discussion notes, JP + JRN
mutable_types.
behaviour if a client tries to change the type of a STRUCT_VARIANT, or member of a STRUCT_VARIANT_ARRAY...
if (mutable_types) { make the change status = OK } else { status = FAILED_PRECONDITION }
motivation - to mark STRUCT_VARIANT parameters that support type changes (to sibling variants) at run-time distinguishable from those that do not.
sketch: