This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-29
Channels
- # beginners (29)
- # boot (17)
- # calva (1)
- # cider (31)
- # cljs-dev (3)
- # clojure (169)
- # clojure-europe (1)
- # clojure-france (1)
- # clojure-russia (40)
- # clojure-serbia (3)
- # clojure-uk (42)
- # clojurescript (19)
- # clr (3)
- # core-async (7)
- # core-typed (3)
- # cursive (43)
- # datascript (4)
- # datomic (2)
- # dirac (4)
- # emacs (2)
- # fulcro (85)
- # funcool (1)
- # nrepl (5)
- # off-topic (14)
- # shadow-cljs (28)
- # spacemacs (5)
- # tools-deps (2)
@caleb.macdonaldblack isn't that load-urls function missing a (when urls ... check ?
Im not sure if the nil check on the url is necessary here, however it is odd the example doesn't pass in a channel into 'load-urls'
Perhaps put! can take nil instead of a channel? But then wouldnt the call to load-urls throw an arity exception? Maybe its just an example to explain how put! works but the actual code and whether or not it runs doesn't matter for the explaination
@caleb.macdonaldblack I am pretty sure it's just docs written in a hurry. Nil check on urls parameter is necessary, because in the callback to put! we are basically calling (load-urls (next urls) .. Next returns nil once we process last url. Then calling (first nil) throws NullPonterException.
Ahh i see