Chris Cain:
Generally it's better to minimize the scope of variables.Quoted for truth.
:-)I was mostly quoting from this blog post, that shows the point is not just scope:
http://blog.knatten.org/2011/11/11/disempower-every-variable/It's a simple couple of rules, useful in all languages, even functional ones.
Bye, bearophile