Fork me on GitHub
#beginners
<
2017-01-05
>
roelof06:01:04

Does someone see what is wrong with this spec (s/def ::principalMakers ⁠⁠⁠⁠(s/coll-of (s/keys :req-un [::name])))

roelof06:01:43

I see this error message : Wrong number of args (3) passed to: spec/def

seancorfield06:01:17

@roelof As I said to you privately, you must have some non-printable characters or something in your file if that's really the line that is failing. I just copied'n'pasted it into a REPL and it works fine.

seancorfield06:01:38

Or else the error's really coming from a different line.

seancorfield06:01:58

Push your latest code back up to GitHub and let us look at it again.

seancorfield06:01:20

None of your clojure.spec code is in your repo yet, so we can't double-check it.

roelof07:01:17

I will push it

roelof07:01:51

I did copy this :

(s/def ::principalMakers ⁠⁠⁠⁠(s/coll-of (s/keys :req-un [::name]))) 

roelof07:01:19

and also see this message : ArityException Wrong number of args (3) passed to: spec/def clojure.lang.Compiler.macroexpand1 (Compiler.java:6833)

roelof07:01:39

@seancorfield and according to you that line is good

roelof07:01:14

yep, there is something wrong with a wierd character. When I type it in the proto-repl it worked well

seancorfield07:01:54

Like I said 🙂

seancorfield07:01:12

And what you pushed doesn't include the spec for ::principalMakers.

roelof07:01:21

oke, I will change that

roelof07:01:43

and the basic/artObject works now fine with the output of the api 🙂

seancorfield07:01:39

Good stuff! Sounds like progress!

rgm18:01:32

hi all... is there a clojure equivalent to eg. https://www.ruby-toolbox.com ... basically a directory of libraries indexed broadly by function, ranked by some sort of proxy measure of uptake?

rgm18:01:45

well... I suppose I could have just mentally pattern-matched the second one anyway. Thanks!

notanon20:01:42

CrossClj is a tool to explore the interconnected Clojure universe. As an example, you can find all the uses of reduce across all projects, or find all the functions called map. Or you can list all the projects using ring. You can also walk the source code across different projects. You can also explore Clojurescript (and cljx) projects, such as garden, and browse auto-generated documentation of both standard namespaces or other projects, or do a full-text search on the whole generated documentation archive for all projects.

notanon20:01:58

wow... that's awesome.

notanon20:01:10

clojure toolbox looks awesome too

notanon20:01:21

wish i knew about these sites a couple years ago 🙂

notanon20:01:25

thanks sean

seancorfield20:01:32

Yeah, crossclj is closer to what @rgm asked for — I mentioned the toolbox just because it is useful but doesn’t provide an exhaustive list, nor does it rank anything.

seancorfield20:01:59

The nice thing with crossclj is that you can even find out which versions of a library are used in different places.