Or say that we are talking about the (im)mutability of variables, not values.
I'm not sure talking about "shallow immutability" is appropriate in this context. When you do a shallow copy, only the fields will be copied (i.e. copies of primitives, and copies of references), so this suggests that shallow immutability means the fields will also not be re-assignable.
11
u/TheNiXXeD Mar 09 '16
Final already exists. It's not about immutability, but you can't reassign that reference.