This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-19
Channels
- # beginners (15)
- # boot (99)
- # braid-chat (1)
- # business (1)
- # cider (109)
- # cljs-dev (1)
- # cljsrn (3)
- # clojure (249)
- # clojure-brasil (2)
- # clojure-canada (2)
- # clojure-madison (4)
- # clojure-russia (3)
- # clojure-sanfrancisco (1)
- # clojure-taiwan (1)
- # clojure-uk (1)
- # clojurebridge (1)
- # clojured (1)
- # clojurescript (15)
- # clojurewest (1)
- # cursive (9)
- # datomic (12)
- # editors (16)
- # euroclojure (1)
- # hoplon (45)
- # off-topic (22)
- # om (181)
- # onyx (2)
- # parinfer (3)
- # pedestal (17)
- # re-frame (2)
- # ring-swagger (1)
- # spacemacs (34)
- # testing (2)
- # untangled (2)
- # yada (1)
@dm3: wouldn’t that have the same problem i had?
hey, so, maybe a dumb question, but if i use symbol
to build a symbol, how do I get at what that symbol refers to?
Clojurescript didn't have Vars until recently, things just compiled into javascript functions/variables
i’ll see if i have the latest version
wait a sec
these tests are written in clj
@dm3: yeah, OK, thanks
so, if i have (def foo “bar”)
and i run foo
i get ”bar”
how do I get ”bar”
from (symbol “foo”)
?
in Clojure you get Var using (def foo-var (resolve *ns* 'foo))
then deref the var to get its value @foo-var
lol, i never would have figured that out
thanks
i’ll try now
(var (symbol "foo”))
did not work
@(resolve (symbol "foo”))
that works
clojure
just in the repl
thanks for the help
yay, tests are passing. thanks again @dm3
is with-page-load
broken?
@thedavidmeister: you can create these multimethods in your own app and hoplon will use them, so they are available across all elements
I also recently learned this