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.From magic number (wikipedia), some possible exceptions:
In reply to Re^5: Perl vs Python revisited
by eyepopslikeamosquito
in thread Perl vs Python revisited
by QuillMeantTen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |