4 ms·
If you like to actually read the code, then being able to search for a variable name really helps comprehension. Shadowing makes that harder, by introducing mul
by alextingle 2y ago
If you like to actually read the code, then being able to search for a variable name really helps comprehension. Shadowing makes that harder, by introducing multiple distinct objects with the same name.
Now you need something like an IDE to easily follow the lifetime of an object. Introducing a heavyweight dependency like that, as a prerequisite for simply following the code easily, is... a poor choice.