I'd say that it is a bad practice to use vague names. Other than that, why can't you use var instead of let and reuse the variables?.
Your example is very confusing. But i'm sure it can be accomplished with the aid of templates/macros. Would be useful if you coded an imaginary syntax that manages to do what you have in mind, and then we could think how to translate that into a template.
