3 ms·
I'm someone with a codebase where we practice const correctness and we haven't had a problem with it. We were being const correct from the start so we don't hav
by Negitivefrags 11y ago
I'm someone with a codebase where we practice const correctness and we haven't had a problem with it. We were being const correct from the start so we don't have the problems associated with trying to change that midstream.
Assuming you do it from the start you shouldn't be running in to issues.
- mark-r 11y agoExactly right. But the example was of combining two code bases, one of which tried to maintain const correctness and one which had utter disregard for it. If you don't believe in const correctness in the first place, the work of making your code compatible can seem intractable.