Fork me on GitHub
#mount
<
2016-01-07
>
timgilbert18:01:40

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.

tolitius19:01:14

@timgilbert: nope. no such general idea. dependency is built by the Clojure Compiler, it will know what to do simple_smile

tolitius19:01:44

you can group defstates in a namespace if it makes sense

timgilbert19:01:34

Oh, interesting, thanks

tolitius19:01:59

does not mean you should follow it, but in general, no restrictions. you are the best to make that judgement simple_smile

timgilbert19:01:16

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

timgilbert19:01:41

But anyways, that's very helpful, cheers 🍻

tolitius19:01:01

right, this is a common patter in mount, you want to have an access to the state instance to :stop / :suspend / :resume it

tolitius19:01:22

*in case you need the instance of course, in some cases you don't..