This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-20
Channels
- # aws (1)
- # beginners (14)
- # boot (30)
- # cider (6)
- # clara (9)
- # cljsjs (3)
- # cljsrn (22)
- # clojure (247)
- # clojure-dusseldorf (75)
- # clojure-france (38)
- # clojure-italy (6)
- # clojure-japan (8)
- # clojure-nl (3)
- # clojure-russia (16)
- # clojure-serbia (4)
- # clojure-spec (1)
- # clojure-uk (53)
- # clojurescript (168)
- # consulting (3)
- # copenhagen-clojurians (1)
- # core-async (7)
- # css (1)
- # datascript (3)
- # datomic (8)
- # dirac (22)
- # events (1)
- # hoplon (2)
- # jobs (1)
- # jobs-discuss (2)
- # leiningen (4)
- # lumo (138)
- # mount (13)
- # nyc (1)
- # off-topic (24)
- # om (34)
- # onyx (15)
- # pedestal (30)
- # re-frame (9)
- # reagent (23)
- # ring (1)
- # ring-swagger (24)
- # rum (6)
- # spacemacs (6)
- # specter (51)
- # uncomplicate (14)
- # unrepl (1)
- # untangled (17)
- # yada (12)
@tbaldridge Uh, never knew about the timeout, is this done through a protocol? How would I add support for this to a type that implements Deref?
It's an interface. IBlockingDeref iirc
Check the source for future or promise
When using a third party library whats the best way to discover how a function works? im using spacemacs with cider Is there some cider command to goto the func defination? is this usually the best way to go about this? Maybe launch a repl that loads in the project and call something on the function?
If you have a repl open then cider-find-var
will go to the function definition, it's bound to M-. by default
@drewverlee in spacemacs the shortcut , g g
can be used for "go to definition". Other than that I frequently use , h h
for showing function documentation. And also playing with the function directly in buffer or in REPL.
@curlyfry i have a data structure like {:value "word" :artists [{:name "main artist" :featuring false} {:name "featured artist" :featuring true}] :song-name "song" :album-name "album"}
i need to get the pk of each artist, the song, and the album; if they don’t exist they need to be created and their new pk retrieved
in the om quick start https://github.com/omcljs/om/wiki/Quick-Start-(om.next) the following code appears
(in-ns 'om-tutorial.core)
(defn read
[{:keys [state] :as env} key params]
(let [st @state]
(if-let [[_ v] (find st key)]
{:value v}
{:value :not-found})))
why is the (let [st @state]
necessary? why not just use (find @state key)
in the if-let?