Fork me on GitHub
#clojure-spec
<
2018-08-02
>
andy.fingerhut04:08:04

@noisesmith Do you know why instrument of function foo causes a function arg of foo to be called additional times with arguments that the intrumented call is not itself calling? I can understand doing that if you were doing generative testing on foo, but don't see the rationale for why one would want to do that for instrument.

noisesmith04:08:04

My understanding is that's the only way spec has to validate a function argument

mpenet09:08:21

It could validate it at invoke time, just once.

mpenet09:08:02

At least in theory. A few people suggested that on jira among other places. I can imagine that being an option

andy.fingerhut04:08:33

Makes sense. 20 times may be more than needed for that purpose, but probably tunable.