3 ms·
Relying on the documented contract when it doesn't match the current behavior makes the application broken.
by toast0 5y ago
Relying on the documented contract when it doesn't match the current behavior makes the application broken.
- MathMonkeyMan 5y agoTrue, but relying on the current behavior when it is only one of many behaviors allowed by the contract prevents the author from changing the implementation, or may make porting the function to other platforms more difficult.
- abecedarius 5y agoAnd you typically find out much sooner. That cost is more obvious.