This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-07
Channels
- # admin-announcements (69)
- # alda (8)
- # beginners (6)
- # boot (182)
- # cider (10)
- # cljs-dev (24)
- # cljsrn (17)
- # clojars (70)
- # clojure (142)
- # clojure-brasil (5)
- # clojure-czech (1)
- # clojure-poland (4)
- # clojure-russia (96)
- # clojurescript (115)
- # community-development (37)
- # component (6)
- # cursive (11)
- # datomic (32)
- # events (4)
- # funcool (6)
- # hoplon (17)
- # ldnclj (10)
- # lein-figwheel (24)
- # mount (12)
- # om (141)
- # onyx (7)
- # parinfer (48)
- # re-frame (24)
- # reagent (31)
Say, is the general idea in mount to keep every (defstate)
in a single namespace, because it uses the namespace tree for dependencies? I have been tempted to put two distinct states in one namespace, but if one depends on another I don't know how I'd specify that.
@timgilbert: nope. no such general idea. dependency is built by the Clojure Compiler, it will know what to do
@danboykis did an example you can check out: https://github.com/danboykis/shipper/blob/master/src/shipper/postal.clj
Oh, interesting, thanks
does not mean you should follow it, but in general, no restrictions. you are the best to make that judgement
I'm mildly surprised that that example code uses postal-queue before its defstate is defined, but I guess that's the magic of macros
But anyways, that's very helpful, cheers 🍻
you mean here: https://github.com/danboykis/shipper/blob/master/src/shipper/postal.clj#L9 ?