Reduce scope for a few local variables?
elfring opened this issue · 4 comments
elfring commented
A few local variables are declared at the beginning of functions despite of the detail that they are used only a bit later in these implementations.
Will it help to reduce the scope for such variables?
tronkko commented
You are right, as always :) Reduction of the scope would improve readability. However, I like to keep the code compatible with older versions of Visual Studio which did require variables to be declared at the beginning of the block.
elfring commented
How would you interpret the beginning of the block for a possible adjustment?
elfring commented
Thanks for your small source code adjustment.