Are any of them used later in the program? That would be the obvious case for when you would want to use a variable instead of a literal. Otherwise, I tend to agree with you. It does clutter things.
Other advice - if you will be changing these programs, you will want to explore creating tests for them.
In reply to Re: Creating Variables Just to Pass into Subroutine?
by GotToBTru
in thread Creating Variables Just to Pass into Subroutine?
by mdskrzypczyk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |