I guess you could make a rule of declaring your variables at the top of their scope, be it a class, a function or a code block. That would give clarity without needlessly expanding any scopes.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments