This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-06
Channels
- # architecture (2)
- # aws (6)
- # bangalore-clj (3)
- # beginners (7)
- # boot (29)
- # cider (26)
- # cljs-dev (52)
- # cljsrn (1)
- # clojure (249)
- # clojure-dev (9)
- # clojure-italy (2)
- # clojure-norway (3)
- # clojure-russia (178)
- # clojure-uk (30)
- # clojureremote (6)
- # clojurescript (91)
- # core-async (4)
- # cursive (8)
- # datascript (3)
- # datavis (1)
- # datomic (6)
- # emacs (3)
- # figwheel (2)
- # hoplon (14)
- # incanter (6)
- # luminus (8)
- # mount (7)
- # off-topic (22)
- # om (25)
- # onyx (41)
- # pedestal (7)
- # re-frame (9)
- # ring (1)
- # spacemacs (4)
- # sql (1)
- # uncomplicate (1)
- # unrepl (37)
- # untangled (90)
- # yada (77)
@curtosis Make sure you understand clojure syntax. :foo/bar
is a normal namespaced keyword with foo
being the namespace. ::foo/bar
however resolves to the namespace of the alias foo
@rauh I do understand that. What I wasn’t getting (but do now) was how the default-interceptors
interacted with ::http/interceptors
– specifically, that ::http/interceptors
takes manual control and doesn’t include the defaults.
which was sort of what you were saying, but it didn’t quite parse for me there. got it now!
What is returned by :find (pull ?e [*])
in a #vase/query
? It seems to have more levels of nesting than I see in the Datomic pull documentation.
I'm just ignoring the seemingly unused bits of the structure, but this feels like I'm doing something very wrong:
(defn response-from-pull [pull-response]
(let [relevant (first pull-response)
cruft1 (next pull-response)
cruft2 (not-empty (remove nil? (map next relevant)))]
(when (or cruft1 cruft2)
(prn "ERROR: Unexpected pull response: " pull-response))
(mapv first relevant)))