Re: clojure.spec explain feedback

2016-06-27 Thread Brent Millare
Thanks for the predicates. What does the integer numbers within In: [[2015 6 31] 1 :chinups 1 0] after the keywords and also the integers within at: [1 1 :duration] correspond to? It appears, you designate an index/id to each key of a map for "In:" but I have no idea how to line up "At:". On Mon

Re: clojure.spec explain feedback

2016-06-27 Thread Alex Miller
There have been a lot of changes in map-of and coll-of for the next alpha, in particular map-of and coll-of now conform all elements, which changes what has been surprising behavior to many people both during conforming and explain due to sampling (which has moved to the new every and every-kv).

Re: clojure.spec explain feedback

2016-06-27 Thread Chris Price
On Monday, June 27, 2016 at 12:45:07 PM UTC-7, Brent Millare wrote: > > I'm playing with clojure.spec (alpha7) to validate a data structure > storing information about workout history using the following code: > > > The problem is that when using s/explain on an invalid input where the > err

clojure.spec explain feedback

2016-06-27 Thread Brent Millare
I'm playing with clojure.spec (alpha7) to validate a data structure storing information about workout history using the following code: (ns v.scratch.lift-tracker (:require [clojure.spec :as s])) (defrecord duration [hours minutes seconds]) (defrecord rep_scheme [weight repetitions]) (s/def :