The idea is still correct. In your last example, the compiler was still smart enough to realize an opportunity to optimize (a clear causal chain of assignments, where the final result is unused).
The idea is still correct. In your last example, the compiler was still smart enough to realize an opportunity to optimize (a clear causal chain of assignments, where the final result is unused).