|
|
|
|
@ -934,7 +934,7 @@ Many more specific rules aim at the overall goals of simplicity and elimination
|
|
|
|
|
##### Reason
|
|
|
|
|
|
|
|
|
|
It is easier to reason about constants than about variables.
|
|
|
|
|
Sumething immutable cannot change unexpectedly.
|
|
|
|
|
Something immutable cannot change unexpectedly.
|
|
|
|
|
Sometimes immutability enables better optimization.
|
|
|
|
|
You can't have a data race on a constant.
|
|
|
|
|
|
|
|
|
|
|