Ditto. The alternative is to name things scanner1, scanner2, etc, but this is quite error-prone, especially with copy-pasting. Scoping makes it certain that the scanner won't get un appropriately reused after.