Tips to cope with scoping rules of top level `for` loops etc

A post was split to a new topic: Are let blocks as fast as functions?