This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-21
Channels
- # 100-days-of-code (1)
- # announcements (2)
- # beginners (164)
- # cider (23)
- # cljs-dev (30)
- # cljsjs (11)
- # cljsrn (7)
- # clojure (116)
- # clojure-boston (1)
- # clojure-dev (20)
- # clojure-finland (2)
- # clojure-italy (4)
- # clojure-nl (1)
- # clojure-uk (10)
- # clojurescript (39)
- # core-async (19)
- # cursive (43)
- # data-science (2)
- # datomic (24)
- # emacs (10)
- # figwheel-main (20)
- # fulcro (63)
- # hoplon (7)
- # hyperfiddle (7)
- # instaparse (3)
- # kaocha (1)
- # nrepl (3)
- # off-topic (170)
- # onyx (13)
- # other-languages (3)
- # parinfer (13)
- # re-frame (39)
- # reagent (5)
- # reitit (22)
- # ring-swagger (4)
- # shadow-cljs (284)
- # spacemacs (2)
- # sql (27)
- # testing (28)
- # unrepl (2)
I just finished reading the doc on misuse of aget/aset for js objects and then stumbled on an example showing the wrong use of aget: http://cljs.github.io/api/cljs.core/DOT
You can get the value at property "foo" with any of the following:
(. o -foo)
;;=> "bar"
(.-foo o)
;;=> "bar"
(aget o "foo")
;;=> "bar"
I assume that last example is a doc bug from the past.@mfikes OK, I created CLJS-2985.
@mark540 Thanks. That JIRA is actually for the ClojureScript compiler. That site is an unofficial doc site on ClojureScript which presumably has a GitHub issues tracker.
That's where the github links on the doc site take me.
That site seems to be the official site for clojure doc, since it is linked to here: https://clojurescript.org/reference/documentation
@jesse.wertheim It is a subtopic in https://clojurescript.org/news/2017-07-14-checked-array-access
I figured that was the rationale but I don't think I'd read it anywhere official before
@mark540 I can’t figure out where the source is, but it appears to be here https://github.com/cljs/cljs.github.io/blob/master/api/cljs.core/DOT.html#L63
Hmm, that source doesn't have the example I mentioned. Anyway, I could try filing a jira there.
Oops, I see it now.
But like you said, that doesn't appear to be the source project and there are no issues filed there.
So... I'm having trouble understanding the distinction and connection between boot
and clj
cli/`deps.edn` ... is the clj
cli boot
? are they one in the same? did the cli grow out of boot
? did certain conventions come over from boot
(like .cljs.edn
files) intentionally or are they just kind of artifacts from libraries that used to use boot
?
Boot is a more comprehensive and fully fledged build tool, with which you will be able to build, compile ClojureScript, deploy, start a repl. Clojure CLI at the moment is basically a runner for Clojure code, with a limited amount of ecosystem around it cause younger
They are different and unrelated
Many Clojure tools use .edn files for config
Hi,
1) is there no equivalent of clojure.repl/source
in cljs?
2) I see that the tooltip for filter
at http://cljs.info/cheatsheet/ is wrong (is same as for keep
) - how to report / fix? (The docstring in the code is correct - https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/core.cljs#L5103)
3) The whole http://clojuredocs.org/ is down (502) but I guess that is a known issue 🙂
Thank you!
Thanks! So perhaps it is only a Planck {or my} issue that cljs.repl cannot be required
in planck it seems you need the planck.repl
ns: http://planck-repl.org/repl.html
Answering to myself: the filter
docs -> https://github.com/oakmac/cljs-cheatsheet/issues/23
I'm seeing an order of magnitude overhead for variadic functions, is this expected?
this is without :optimizations :advanced, let me just double check that doesn't go away...
yeah, closure compiler optimizes it away. still- worth watching out for. (now everything takes ~30ms, which is interesting..)
generally you don't set :static-fns
during dev though because you could get into a funny place at the REPL
I hadn't realised :static-fns
was a thing, so that probably explains the mess I am in
Closure doesn't do that much with fn optimization - it really is the ClojureScript knobs that make that faster
is anyone using the dotenv
library with :npm-deps
by any chance?
I cannot make it work for the life of me