April 2022
Intermediate to advanced
528 pages
13h 34m
English
Cippi admires her diamond.
I have a bit of an issue: On the one hand, pretty much everything in the five rules about constants and immutability has been covered in previous rules. On the other hand, writing your software using as much constant and immutable data as possible solves many challenges by design. Therefore, this section recapitulates the rules on constness and refers to previous rules when they provide additional value. In the end, const, constexpr, and immutability are such essential ideas that they should have an explicit place in this book about the C++ Core Guidelines.
constRead now
Unlock full access