2 ms·
Yes, if the function breaks, do we care what some code did in the same situation that was removed 30 years ago? I mean, let's look at it like this: does the au
by kazinator 11y ago
Yes, if the function breaks, do we care what some code did in the same situation that was removed 30 years ago?
I mean, let's look at it like this: does the author of the removed code have a vote in what should happen, through the comment? If it's so important, why was it removed?
How do we even know that the new code did something wrong? We do not know that in relation to the old function; we know that in relation to some modern criterion. Maybe it completely bombs (irrelevant that the old code didn't bomb, or whether or not it did), or that returns some result someone doesn't like (without regard for what the old code did), or that violates some documentation.
We can decide today what the code should do, and fix it, or its specification or both.