mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
commit
9aa9167e6c
|
@ -934,7 +934,7 @@ Many more specific rules aim at the overall goals of simplicity and elimination
|
||||||
##### Reason
|
##### Reason
|
||||||
|
|
||||||
It is easier to reason about constants than about variables.
|
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.
|
Sometimes immutability enables better optimization.
|
||||||
You can't have a data race on a constant.
|
You can't have a data race on a constant.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user