|
|
|
|
|
by gpm
2 days ago
|
|
The spec is also nice in that higher level abstractions check they're using the lower level ones according to actual specified behaviour not intended behaviour. E.g. with a normal programming language a bug in the hash-map internals that rarely returns the wrong element is undectable. With a spec, if the spec says it can ever return the wrong element, I'm going to run head first into that when I try and prove that my pathfinding algorithm using that hashmap for memoization is correct. |
|