|
|
|
|
|
by moloch-hai
1301 days ago
|
|
Yet, really. The library author has certain knowledge of what the library is meant to achieve, where the compiler is obliged to guess according to whatever tea leaves it can find to descry. In particular, the library author knows that the container won't be changing size over the duration of the loop, something the compiler would have difficulty proving. |
|
What's special about libraries? Every programmer has such knowledge, and every programmer writes buggy code.