const) should be named in
SHOUT_CASE would actually harm readability, rather than aid it, and dilute the meaningfulness of the convention itself.
Now, I understand that
var and nothing else. But with language-level support for const values, is there much use for this convention any more?
At runtime, any identifier created using the keyword
const cannot be re-used or re-assigned to. This isn't strictly const correctness in the C/C++ sense, but for primitives it is fine. For objects, you'd have to use
readonly (C#) or
final (Java) .
What benefits would having things labelled in
SHOUT_CASE present in a language that already has
const support built into the syntax?