3 ms·
So, declaring variables at the top of the function makes it easy to find them. Now how do you find the point of initialization? declare x | ...
by loup-vaillant 16y ago
So, declaring variables at the top of the function makes it easy to find them. Now how do you find the point of initialization?
declare x |
... | ...
initialize x | declare & initialize x
... | ...
use x | use x
In both cases, you will have to scan for the whole function, or hit the "search" hotkey. Or maybe sometimes you just need to know when `x` were declared, but not what value it holds?