On Tue, Oct 3, 2017 at 2:55 AM, Peter Hull <peterhul...@gmail.com> wrote:
> On puzzler's database example, I would have thought that restricting the > keys that go into the DB should not be the job of spec (since functions may > not be instrumented anyway), but the job of the 'core logic'. Maybe I am > misunderstanding though. > Even when functions are not instrumented, one powerful use of spec is to call valid? or conform from within your code to test data against specs as part of the function's logic. One of the value propositions of spec is that it handles a whole range of use cases. You define your spec once, and one of the many things you can do with it is to use it as part of your validation logic. -- 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.