by 0x434D53 · 11y ago · 0 comments
For slices? Also element-wise? Even with different capacities? If the refer to the same window in the underlying array? Is there a need to copy the slice for inserting it to the map? Probably yes, because otherwise you could mutate the key from outside. But then it would be inconsistent to assignment (slices are reference types).
I have no idea how this could be done concisely.
As far as the whole ownership issue, that's a bit more than just ==, isn't it? Equality was the only thing I was questioning.