|
|
|
|
|
by protomolecule
1118 days ago
|
|
"It adds mental overhead." To me `const` removes mental overhead -- if I pass a const object somewhere, I can be sure it doesn't get changed. I don't need to inspect the code to make sure it doesn't call any methods that modify the object or trust a probably outdated comment or documentation. |
|