I don't see a huge benefit in nailing down a precise definition of what is, and what is not, a magic number.
Fair enough. My personal criteria is that a number used once, is just a number. Used more than once -- to represent the same value -- it should be a symbolic constant or enum.
In reply to Re^4: Perl vs Python revisited
by BrowserUk
in thread Perl vs Python revisited
by QuillMeantTen
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |