but its members are not:
I guess if you think you might 'accidentally' modify something you've defined as a constant that might be a problem.
But the primary uses of constant are:
Even $UPPER_CASE doesn't achieve that (as well).
Using variable name syntax for things that are not variable makes no sense.
The oxymoronic read-only variables can not do this.
In reply to Re^3: 'constant' vs array (Ignore bad benchmarks: [mod://constant] arrays are (a little) faster!)
by BrowserUk
in thread 'constant' vs array
by fionbarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |