This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-19
Channels
- # beginners (17)
- # boot (7)
- # cider (1)
- # cljsrn (4)
- # clojure (22)
- # clojure-austin (19)
- # clojure-canada (1)
- # clojure-dusseldorf (1)
- # clojure-greece (3)
- # clojure-russia (19)
- # clojure-spec (46)
- # clojure-uk (23)
- # clojurescript (17)
- # core-async (7)
- # cursive (13)
- # dirac (66)
- # kekkonen (1)
- # lein-figwheel (2)
- # om (1)
- # onyx (2)
- # re-frame (1)
- # reagent (1)
- # specter (2)
How do I know when to quote a vector used with require
?
If I quote it in the file, this seems to anger cursive, if I don't quote it in the repl, it won't work
@emperorcezar: you always have to quote a (require 'some.ns)
in the repl but never a (ns my.ns (:require some.ns))
Hi , ('+ 1 2 )
, this doesnot throw any errors, and yet returns the last item in the list , why ?
hi @yusup, I had to consult the code for this. Apparently symbols are like keywords, in that you can use them as a function that does a map lookup
if you pass an extra argument then this is used as a default value when the symbol is not present as a map