|
|
|
|
|
by giberson
3820 days ago
|
|
>we leave this version here commented-out,
because the code is very complex and likely to have subtle bugs. If
bugs _are_ found, it might be of interest to look at the old code and
see what did it do in the relevant situation. Here are two better alternative solutions: * comments (in natural language not code) that describe what the code should do
* test cases: to dictate what code should do and prove it does do it
|
|
The actual problem at hand was rewriting that function in a way that doesn't break the uncounted thousands of usages in the wild, which depend on the self-described "complex and likely to have subtle bugs" original implementation.