3 ms·
The downside of extra variables used only once is that as a reader of the code I have to think about whether they might be used again.
by zeroonetwothree 3y ago
The downside of extra variables used only once is that as a reader of the code I have to think about whether they might be used again.
- mvdtnz 3y agoI know what you mean, but in this situation it shouldn't be a major problem. These would be variables scoped locally and one would hope that this scope would not be more than about a page of code, and hopefully much less. Also - one would hope that local variables are not being re-used!