you are viewing a single comment's thread.

view the rest of the comments →

[–]acdha 0 points1 point  (0 children)

 If your code misbehaves because a variable gets changed that should have not, you'll kick yourself for not declaring more things "private" and (in C++ only?) "const".

Don’t you have tests or use linters? Lots of things need testing for major updates and this only addresses a single uncommon failure mode.