Agreed, but I also want to point out that making extra lines of code that helps you reason better doesn't make the code more readable at all. In fact, it can make your code thousands of lines long when a a dozen might do the job with less bugs.
Oh, that's not about variables at all, it's really about what happens inside a function and what should be outside it.
Both examples of uninitialised variable declarations let a, b, c = 1 or let a; let b; let c =1 or even let [a,b,c] = [,,1] are code smells imho, it just looks messy and error prone.
This
Oh, that's not about variables at all, it's really about what happens inside a function and what should be outside it.
Both examples of uninitialised variable declarations
let a, b, c = 1
orlet a; let b; let c =1
or evenlet [a,b,c] = [,,1]
are code smells imho, it just looks messy and error prone.Ah I see, then I think we are talking about different things. The max thread levels makes this confusing.
And I agree about undefined variable declarations.