Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 3 years ago“It’s not that hard”sh.itjust.worksimagemessage-square197fedilinkarrow-up1965
arrow-up1965image“It’s not that hard”sh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 3 years agomessage-square197fedilink
minus-squarefloofloof@lemmy.calinkfedilinkEnglisharrow-up3·edit-23 years agoI 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.
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.