Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: