As of now Array(and map) are immutable and COW by default, one nice property is it allows us to unify handling of tuple and map. The underlying ABI do support mutable variant as well(with the data deleter field and data ptr). While developers can always wrap ObjectRef variant to be muatble, it can helpful to think about the design choice and bring up support for mutable variant.
As of now Array(and map) are immutable and COW by default, one nice property is it allows us to unify handling of tuple and map. The underlying ABI do support mutable variant as well(with the data deleter field and data ptr). While developers can always wrap ObjectRef variant to be muatble, it can helpful to think about the design choice and bring up support for mutable variant.