This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-12
Channels
- # admin-announcements (3)
- # beginners (17)
- # boot (52)
- # braveandtrue (95)
- # cider (4)
- # cljs-dev (2)
- # clojars (118)
- # clojure (146)
- # clojure-art (4)
- # clojure-austin (1)
- # clojure-finland (20)
- # clojure-italy (33)
- # clojure-nl (1)
- # clojure-russia (49)
- # clojure-spec (136)
- # clojure-uk (28)
- # clojurescript (134)
- # clojutre (1)
- # conf-proposals (64)
- # cursive (3)
- # datomic (76)
- # hoplon (11)
- # ipfs (7)
- # jobs (1)
- # jobs-rus (1)
- # leiningen (4)
- # luminus (4)
- # mount (9)
- # om (34)
- # onyx (34)
- # proton (1)
- # re-frame (4)
- # reagent (35)
- # ring (2)
- # ring-swagger (6)
- # rum (15)
- # untangled (87)
@kingoftheknoll: yep, as long as the compiler saw the state, mount will pick it up (i.e. compiler will let mount know: here is a var you might be interested in)
i.e. it will show each state as it sees it: https://github.com/tolitius/mount/commit/e34a164c2ef4e7dc0cbe9d86e18ab98f0f66508f
@tolitius: thanks! Does that mean that if defstates A -> B where B depends on A. If I refer B into my user namespace I'm assuming it automatically picks up A? And even if it does do you find that it's just better to be explicit and refer them all?
if I understand your question correctly, then yes, dependencies will be brought into your namespace transitively (you can require only B
, and, since it depends on A
, compiler would have already seen A
by the time you get to use B
)
whether it makes sense to define them all explicitly would depend on where "the action takes place".