const
docstring gives over-eager advice
#57565
Labels
docs
This change adds or pertains to documentation
const
docstring gives over-eager advice
#57565
the docstring:
it may seem a bit too-obvious but I think the docs should emphasize more strongly here that a variable should only be declared
const
if it is actually constant. the wording "almost all code" is quite strong here and there might also want to be information here that it is not just about the value changing but about the non-reassignmentthat is, I doubt this is a legal use of
const
even though the value never changes (...unless it is in fact legal?)The text was updated successfully, but these errors were encountered: