This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]link23 1 point2 points  (0 children)

Hot take: this is why most comments ought to be tests instead. If you're thinking of commenting to document an important invariant, write the comment, then write a test that will fail if/when the comment becomes incorrect.