Fork me on GitHub
#beginners
<
2017-08-25
>
shaunlebron00:08:39

@shrimpywu I don’t think so. from what I’ve seen, the closure compiler options have to be explicitly mapped to a cljs compiler option to be used

shaunlebron00:08:07

I would check in #cljs-dev, they may just add it in if you want it

shaunlebron00:08:17

the core cljs devs hang out there

shrimpywu00:08:10

@shaunlebron yeah, i look thru https://clojurescript.org/reference/compiler-options, and couldn't find that option. thanks! let me go over there and ask.

morgancmartin01:08:47

hey folks, does anyone know how to specify styles by id in garden? You can select classes like :.my-class {:background-color "red"} but :#my-id does not work

morgancmartin01:08:50

nevermind, I forgot to wrap my attributes in curly braces and it wasn't picking up correctly 😏

funkrider02:08:57

I am trying out clojure.spec and wanted to use it to validate a simple function to check that a tree of nodes is a binary search tree. I designed each node to be a simple map containing 3 kv pairs (value, left & right). The issue I seem to have is that because the left and right nodes are essentially recursive - spec generators typically throw a Stack Overflow when generating some sample data. Here is what I am using:

;;(:require [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen])
;; Node example
(def a-node {:value 1 :left nil :right nil})

(s/def ::value integer?)
(s/def ::right (s/nilable ::node))
(s/def ::left (s/nilable ::node))
(s/def ::node (s/keys :req [::value ::left ::right]))
(gen/generate (s/gen ::node))

funkrider02:08:15

Any ideas about how to limit generation or some other way to generate a tree of nodes would be great, thanks in advance.

funkrider02:08:14

Oddly if I change say one node (right or left) to be integer type then the generation succeeds...

lepistane06:08:49

Hi i read few topics on reddit regarding communication of community people say slack is bad, discord is good is there a reason why we use slack?

seancorfield06:08:34

That is a discussion for #community-development not #beginners

seancorfield06:08:52

(it's been discussed to death there over the years)

sb10:08:38

where can I find good cljc tutorial? or example?

sb21:08:21

thanks!! @U1RUG108P