2 ms·
> I don't think that's quite the same issue. It is. > That `a` is reassigned doesn't make it unused. It is, after all, a variable. But that's exactly why it'
by masklinn 4y ago
> I don't think that's quite the same issue.
It is.
> That `a` is reassigned doesn't make it unused. It is, after all, a variable.
But that's exactly why it's bad, "unused variable" is not a super useful signal in the first place, and if you assert that everything must be used then you need to protect against "unused stores" instead.
SSA tells us there is essentially no difference between assigning and reassigning.