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:
- Giving literals meaningful (symbolic) names.
- Making it obvious to yourself and other programmers that this thing is a program defined literal by the use of a CLEARLY_DIFFERENT_SYNTAX.
Even $UPPER_CASE doesn't achieve that (as well).
Using variable name syntax for things that are not variable makes no sense.
- Availing yourself of the optimisations that come from informing the compiler that this entity is not going to change.
The oxymoronic read-only variables can not do this.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.