News for hackers. Stuff that matters.
Re:How to avoid the assignment statement by loup-vaillant on Monday July 12, 2010 @04:56AM (#1507259)
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?

There are no comments on this comment yet.