Small Vectors

Yeah I think of mutability as more about the aliasing than the mutations. I’ve noticed that many people new to this kind of mutability reach for mutables when they really want reassignments, which Accessors.jl can make mutation syntax do. I wonder though, can reassignment be optimized so that a field is modified instead of a full new instance being constructed.

1 Like