[I’m so so excited. I thought for sure I was done with the catalog of tidyings. Then I ran across this one. Gives me hope that I’ll find even more tidyings out there. Send in your favorites! —kb]
Variables & their initialization seem to drift apart sometimes. The name of a variable gives you a hint as to its role in the computation. However the initialization reinforces the message of the name. When you come across code that separates the two, declaration (with a possible type) & initialization, & the code is harder to read. By the time you get to the initilization, you've forgotten some of the context of what the variable is _for_.
Here's what this tidying looks like.