A sufficiently detailed spec is code
10 points
1 hour ago
| 1 comment
| haskellforall.com
| HN
measurablefunc
2 minutes ago
[-]
I agree with the overall structure of the argument but I like to think of specifications like polynomial equations defining some set of zeroes. Specifications are not really code but a good specification will cut out a definable subset of expected behaviors that can then be further refined with an executable implementation. For example, if a specification calls for a lock-free queue then there are any number of potential implementations w/ different trade-offs that I would not expect to be in the specification.
reply