Fork me on GitHub
#clojure-spec
<
2018-04-20
>
kenny19:04:27

I wrote a small library that addresses the above problem -- instrumenting initial/global function calls. It takes a slightly different approach than fdef. During development it immediately wraps function calls with assertions on a function's args and ret value. Thoughts on this idea? 🙂 https://github.com/Provisdom/defn-spec

👍 4
frankitox19:04:56

Neat! Looks pretty similar to orchestra.

kenny20:04:37

Ah you're right. I did not realize orchestra did more than enable :ret checking for instrumentation. This approach is still different than orchestra's defn-spec. Orchestra's defn-spec also doesn't have great IDE support.

frankitox03:04:08

@U083D6HK9! I pretty much skimmed the README at work. Now I gave it a read and see more clearly the purpose of the lib (BTW, that's a well written README). My thoughts are: I liked it. You just don't care anymore about instrument.

kenny05:04:56

Thank you. And yeah, I came to a similar conclusion.