Why to assign a lot of variants to one array? (Basic syntax)


Why producing different meanings behind a similar basic syntax? despite one for immutable, another for mutable.

What’s “assign a lot of variants to one array”? Do you mean assigning one array to multiple variables?

Because that’s exactly what the syntax mean? You are literally assigning one array to multiple variables, as in, there’s one array on the RHS and multiple variables on the LHS.

They are producing the same result since they have the same meaning being exactly the same syntax. There’s absolutely no difference. In particular, anything you can do with x, y, z in terms of their identity, equality and mutatiton are exactly reproducible with a, b and c. The other way around isn’t fully true but that’s because you couldn’t mutate a, b or c.