Fork me on GitHub
#clojure-spec
<
2016-07-09
>
donaldball01:07:06

I’m kinda wishing s/def allowed a docstring. The generated docstring is okay, but I think I’d like to be able to communicate the intent also.

donaldball02:07:30

Weirdly, I had a good test running in an earlier repl with stest/check but now it’s raising

donaldball02:07:40

Caused by: java.lang.ClassCastException: clojure.lang.AFunction$1 cannot be cast to clojure.lang.MultiFn

robert-stuttaford14:07:00

so we have s/merge to make a single s/keys out of two other s/keys. i'm wondering, how do i spec a map that has some base set of req+opt keys, but also has an optional set of keys that must appear together as if speced with s/keys :req ... ?

arohner19:07:34

has anyone seen java.lang.IllegalArgumentException: No implementation of method: :conform* of protocol: #'clojure.spec/Spec found for class: clojure.spec$spec_impl$reify__13361

arohner19:07:41

I’m doing something wrong, but I haven’t found it yet

arohner19:07:47

hrm, looks like I needed to clean after upgrading clojure

kendall.buchanan20:07:41

@donaldball: I’ve been experiencing the same with check-var