On Wednesday, May 25, 2016 at 5:30:03 AM UTC-7, Rich Hickey wrote: > > The philosophy is - generative testing has made sure your function > complies with the specs. So, testing the :ret and :fn properties over and > over is redundant and serves no point. > > OTOH, you may encounter user- or externally-supplied data at runtime and > want to use the facilities of spec to validate/process it. Then you can use > valid? or conform *explicitly* to do so. >
Ah, that totally makes sense -- only the :arg validation and not the :ret/:fn properties are relevant to check on every invocation at runtime (rather than test time). Thank you! -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.