This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-07-29
Channels
- # admin-announcements (48)
- # announcements (1)
- # beginners (80)
- # boot (150)
- # cljs-dev (12)
- # clojure (133)
- # clojure-dev (1)
- # clojure-italy (27)
- # clojure-japan (1)
- # clojure-russia (77)
- # clojurescript (236)
- # clojutre (3)
- # code-reviews (1)
- # core-async (14)
- # core-logic (4)
- # core-matrix (15)
- # cursive (5)
- # datomic (30)
- # editors (16)
- # events (1)
- # hoplon (1)
- # ldnclj (17)
- # off-topic (30)
- # om (2)
- # onyx (47)
- # reagent (8)
Is there any contract on what namespace analysis map contains (`:requires`)? Or should there be api calls to access e.g. requires?
(defn ns-depedencies [state ns] (vals (:requires (find-ns state ns))))
I've been checking on how to use cljs api for last piece of boot-cljs which accesses compiler env directly: https://gist.github.com/Deraen/19b62045e74e547025de
I could use cljs-ns-dependants
but that does lots of unnecessary stuff when I really need only :requires
@juhoteperi: accessors into the analysis map are a good thing, we’re not going to make promises about what's in there and what shape it’s going to be.
for perf reasons it probably won’t even be a plain map for much longer - so any expectations that it is will likely break
I've encountered problems using records in cljc
. While Clojure needs the (:import [my.new.Class])
, ClojureScript only uses :import
for goog
classes. The only solution I found was:
@potetm: I tried that at some point and encountered an error. I'll try to reproduce it.
@bensu: Cool. Also, we might move this to the #C03S1L9DN channel. Don’t want to bother these guys with non-development stuff.