• floofloof@lemmy.ca
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    10 months ago

    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.