Finally, the meeting video:
https://www.youtube.com/watch?v=XoVX2Ezi_YM
On Sat, 7 Sep 2019 at 16:18, Daniel Slutsky
wrote:
> Registration to the meeting:
> https://twitter.com/scicloj/status/1170302124766433280
>
> On Mon, 2 Sep 2019 at 10:26, Daniel Slutsky
> wrote:
>
>> On Thursday, Sep 12th
Hi all,
I am trying to implement custom assertions in ClojureScript. I tried to
use defmethod but got the following error:
> clojure -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version
> "1.10.520"}}}' -m cljs.main --repl --repl-env node
> cljs.user=> (require '[cljs.test])
> nil
> cljs.use
> On Sep 26, 2019, at 7:15 PM, Markus Agwin wrote:
>
> https://www.clojure.org/guides/spec are the docs I mentioned (search for
> first occurrence of :kind)
Thanks, that’s just old, will fix.
>
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
https://www.clojure.org/guides/spec are the docs I mentioned (search for
first occurrence of :kind)
Thank you very much! I have foolishly only checked for s/explains's
"Success!" string, having omitted the s/valid? check to save runtime.
On Thursday, September 26, 2019 at 2:54:03 PM UTC+2, Alex
On Thursday, September 26, 2019 at 7:41:20 AM UTC-5, Markus Agwin wrote:
>
> Consider the following cloure.spec-alpha2 example:
>
> (def v [0])
> (s/def ::thevec vector?)
> (s/def ::data (s/coll-of number? :kind ::thevec))
>
:kind is expected to be a predicate, not a spec. The doc string (in
Consider the following cloure.spec-alpha2 example:
(def v [0])
(s/def ::thevec vector?)
(s/def ::data (s/coll-of number? :kind ::thevec))
(s/valid? ::data v) ;;=> returns false, my expectation is that it should
return true
(s/explain ::data v) ;;=> prints "Success!", which inconsistent to s/va