4 ms·
> I'm not saying the name is wrong because of the comment, I'm saying it's wrong because of the usage of the acronym. I get that. But you also said the comment
by tln 7y ago
> I'm not saying the name is wrong because of the comment, I'm saying it's wrong because of the usage of the acronym.
I get that. But you also said the comment would be unnecessary with a name change. The comment does communicate more information than your proposed name, IMO, hence is not replaceable by the name. (IMO).
> You wouldn't get a different rounding if you were to modify MAX_TIMESTAMP_PRECISION, which is what you would expect based on that comment.
Good point. The comment isn't wrong with the definition of MAX_TIMESTAMP_PRECISION as it is in the code. If you override it though, the code doesn't do what the comment says.
It's an interesting case: if you trust the comment indicates the desired behavior, then you can see the code may have room to be improved. If you distrust that the comment is correct or has value, then you might just remove the comment, and the code doesn't get better.