Immutable vs Constness - What's the difference?
immutable | constness |
Unable to be changed without exception.
(programming, of a variable) Not able to be altered in the memory after its value is set initially, such as a constant.
(computing, programming) The declaration of variables or objects as immutable.
As nouns the difference between immutable and constness
is that immutable is something that cannot be changed while constness is (computing|programming) the declaration of variables or objects as immutable.As an adjective immutable
is unable to be changed without exception.immutable
English
Adjective
(-)- The government has enacted an immutable law.
