Re:Clojure.spec – Rationale and Overview
by pron on Monday May 23, 2016 @02:27PM
(#11755787)
> a value can be checked against a spec on demand, but makes zero guarantees as to what that value does in other parts of a program
The spec is just metadata. How it's used is part of the tooling. I see nothing precluding using specs in tools that employ and analyze that information in different ways.
Re:Clojure.spec – Rationale and Overview
by aconz2 on Monday May 23, 2016 @02:50PM
(#11755936)
Yep you are totally correct. I only point this out because the tool presented here does not do the same thing as other contract systems, but could (as you say) be used as a building block to get there.
The spec is just metadata. How it's used is part of the tooling. I see nothing precluding using specs in tools that employ and analyze that information in different ways.