Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
toast0
· 4y ago · 0 comments
Relying on the documented contract when it doesn't match the current behavior makes the application broken.
Comments
[–]
MathMonkeyMan
4y ago
True, 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
4y ago
And you typically find out much sooner. That cost is more obvious.