4 ms·
It helps reduce uninitialised variables, and if the condition is false, you don't have an extra variable hanging around in the scope that could potentially be m
by PudgePacket 7y ago
It helps reduce uninitialised variables, and if the condition is false, you don't have an extra variable hanging around in the scope that could potentially be misused by the developer later.
- jlokier 7y agoYou seem to have missed the point of the comment you're replying to, which already acknowledges that scope-limiting is a good thing to do.