2 ms·
The no-const people will never be satisfied, so just use const as necessary, propagate as required, and ignore them when they complain. If they take it out, put
by tom_ 3y ago
The no-const people will never be satisfied, so just use const as necessary, propagate as required, and ignore them when they complain. If they take it out, put it back in. They'll always get bored first. I've been doing this for 25 years, and I'm still here.
(The static thing might depend on the tooling. I went static-by-default about 15 years ago, around the same time I went full size_t, and I've yet to have a problem with it.)
- thefourthchime 3y agoI’ve been her 30 years. I’ve never found much use for const. I value brief simple code that doesn’t rely on things like const to tell people what’s going on. Codebases have their own conventions and design patterns. If you have that const is a needless formality. Code should be being simple and clean first, constantly stating things that are obvious 90% of the time isn’t that.