This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-06
Channels
- # announcements (16)
- # aws (9)
- # babashka (76)
- # beginners (92)
- # boot (1)
- # cider (18)
- # clara (7)
- # clj-kondo (26)
- # clojure (104)
- # clojure-europe (4)
- # clojure-nl (11)
- # clojure-spec (11)
- # clojure-survey (101)
- # clojure-uk (35)
- # clojuredesign-podcast (18)
- # clojurescript (8)
- # core-async (29)
- # data-science (1)
- # datomic (13)
- # emacs (4)
- # fulcro (20)
- # graalvm (14)
- # instaparse (2)
- # jobs (1)
- # juxt (6)
- # malli (5)
- # off-topic (30)
- # onyx (3)
- # planck (1)
- # project-updates (7)
- # re-frame (38)
- # reagent (30)
- # reitit (14)
- # remote-jobs (2)
- # shadow-cljs (50)
- # sql (8)
if anyone has opinions on cljs-related questions in the state of clojure survey, would welcome your feedback on questions just asked in #clojure-survey
@alexmiller are you asking about cljc dev btw?
generally, asking about all Clojure/ClojureScript development, but there is no specific question regarding cljc right now. if you have a more specific idea, please take it to #clojure-survey to discuss
Hello; does anyone know why the following code behaves the way it does?
(def class (js/eval "class MyClass {}; MyClass;"))
(new class) ;; Works
(new (js/eval "class MyClass {}; MyClass;")) ;; Execution error (TypeError) at (<cljs repl>:1). eval is not a constructor
It's stemming from me wanting to do the following code:
(def ^:private code-that-works
(let [ctr (gobj/get AWS "S3")]
(new ctr (clj->js {:signatureVersion "v4"}))))
(def ^:private code-that-doesnt-work
(new (gobj/get AWS "S3")
(clj->js {:signatureVersion "v4"})))
new working with anything other than a literal constant symbol is likely undefined behavior
maybe not, https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/analyzer.cljc#L2456 explicitly calls out :local