This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-04
Channels
- # beginners (46)
- # boot (65)
- # cider (8)
- # cljs-dev (5)
- # cljsrn (4)
- # clojure (50)
- # clojure-conj (2)
- # clojure-france (1)
- # clojure-greece (18)
- # clojure-russia (8)
- # clojure-spec (39)
- # clojure-uk (36)
- # clojurescript (36)
- # clr (16)
- # component (2)
- # cursive (6)
- # datascript (3)
- # datomic (31)
- # devcards (2)
- # editors-rus (1)
- # emacs (15)
- # events (2)
- # figwheel (1)
- # funcool (24)
- # garden (3)
- # hoplon (22)
- # instaparse (15)
- # leiningen (3)
- # luminus (4)
- # om (59)
- # onyx (24)
- # overtone (1)
- # pedestal (3)
- # planck (18)
- # prelude (1)
- # protorepl (2)
- # re-frame (5)
- # rum (1)
- # sql (1)
- # uncomplicate (1)
- # untangled (66)
- # vim (18)
- # yada (4)
@dnolen yea I figured that’s what should happen, but I’m not seeing where that would be enforced @ https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/compiler.cljc#L1438
well i had a flaky build happen that said that cljs.test
was missing symbols like report
if you want to see something be officially supported propose something for cljs.build.api
This is part of the same question: is there a way (in cljs) to differentiate between (second {:a 1 :b 2})
and [:b 2]
It appears that cljs uses cljs.core/PersistentVector
s instead. So maybe they're indistinguishable?
@escherize isn’t that too low-level a distinction? In what way are you trying to differentiate between those two things?
@escherize not distinguishable - but not for any particular reason other then that was how it was originally implemented in CLJS
How do I call new on something that’s not a symbol, such as (.-ec elliptic)?
I’m running 1.9.229
nah it's still there https://github.com/clojure/clojurescript/blob/master/src/main/clojure/cljs/analyzer.cljc#L1660
I thought I had opened a JIRA ticket for that, but I can't find it
@dnolen oh we talked about it but I never did do anything it seems. As per our previous discussion, I'm going to close this: http://dev.clojure.org/jira/browse/CLJS-693 and open a new ticket for relaxing the symbol constraint
that sound good?
@anmonteiro go for it
ok, no problem @dnolen 🙂
@pupeno: FWIW, a workaround is store the result of that in a local var and call new on that instead
what’s the difference between
(ns something.whatever (:require [this.between.brackets]))
and
(ns something.whatever (:require this.without.brackets))
?
@rafaelzlisboa there's no difference AFAIK. Well, as shown by Stuart Sierra in https://stuartsierra.com/2016/clojure-how-to-ns.html there is a visual difference so vector is usually preferred :) > Put every :require’d namespace in a vector (square brackets) even if it doesn't have an :as or :refer. This makes visual scanning and sorting easier.
@rafaelzlisboa yes, no difference