This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-08
Channels
- # admin-announcements (19)
- # announcements (1)
- # beginners (70)
- # boot (192)
- # braid-chat (55)
- # cider (3)
- # cljs-dev (42)
- # cljsjs (2)
- # cljsrn (25)
- # clojars (23)
- # clojure (162)
- # clojure-brasil (3)
- # clojure-czech (18)
- # clojure-russia (10)
- # clojurecup (3)
- # clojurescript (63)
- # code-reviews (6)
- # community-development (340)
- # core-async (7)
- # cursive (4)
- # datomic (20)
- # events (2)
- # funcool (3)
- # hoplon (20)
- # jobs (33)
- # ldnclj (11)
- # lein-figwheel (9)
- # leiningen (6)
- # off-topic (1)
- # om (79)
- # proton (4)
- # re-frame (39)
- # ring-swagger (4)
- # slack-help (2)
- # yada (2)
Tried current master on my personal projects and with regards to js module support and all looks good so far :thumbsup:
Guys, is the following normal (and why?):
cljs.user=> (js-obj :foo :bar)
#js {::foo :bar} <- two :
I also found weird that:
cljs.user=> (= {:foo :bar} (js->clj (js-obj :foo :bar)))
false
with:
my.ns=> (js->clj (js-obj :foo :bar))
{":foo" :bar}
I can open an issue and have a look at it in case
@dnolen can you expand just a bit? Maybe I am missing some js fu here, but what is a ::foo
in a js object? And shouldn't js->clj and js-obj mirror each other? I know you are busy but one hint would be enough so that I can google it
@richiardiandrea: nothing around js->clj
or clj->js
is very high priority
Understood, tnx
@dnolen: why is it that @richiardiandrea 's example above works that way? I'm referring to (js-obj :foo :bar)
returning #js {::foo :bar}
I mean specifically the 2 colons
before foo
(js-obj "foo" :bar)
works
thanks
I had forgotten about that
@dnolen: had no idea about this stuff, caused me a few headaches today because I forgot to use strings in js-obj
. that clears things up
@dnolen: of course, that makes total sense; I somehow was expecting that coercion
dully noted
the reader literal is purely a compile time thing (well read-time thing to be more precise) there’s nothing happening at runtime
@dnolen: I failed to notice something yesterday when testing Natal/Ambly with master. While things work properly, it evidently copies over more than it used to (initial hunch is a cache invalidation issue). I haven’t dug into it yet, but sharing in case others start reporting similar. Here is a gist at least showing it: https://gist.github.com/mfikes/0184826e6f85a6b7128f