Fork me on GitHub
#clojurescript
<
2017-04-07
>
johnj02:04:03

Does clojurescript has anything over JS/immutablejs/lodash ? (besides the lisp syntax)

qqq03:04:22

sharing code on server/client side

qqq03:04:33

sharing clojure.spec on server/client side

qqq03:04:44

sharing data (transit/read, transit/write) on server/client side

johnj03:04:00

What of those JS can't do?

johnj03:04:17

or doesn't have

qqq03:04:30

1) I guess if you're using js on the server side too, you can achieve the same. 2) I think this is #off-topic rather than #clojurecript .

mikethompson03:04:37

@lockdown you might be interested in this video. It puts the case fairly well: https://www.youtube.com/watch?v=gsffg5xxFQI (I'm unsure of what you already know and what goals are driving your question)

johnj03:04:23

too much yak shaving for at the moment, thanks

qqq09:04:14

What is the clj equiv of

(try
  ...
  (catch Exception e (foo (:ex-data e))))
it seems like Exception exists in Clojure but not in CLJS

rauh09:04:04

@qqq (catch :default e)

rauh09:04:14

If you want to only catch errors then use js/Error (which is what ex-info creates)

borkdude11:04:11

(reposted from clojure-spec) Has anyone seen a similar error message like this lately? Attempting to call unbound fn: #’clojure.spec/macroexpand-check We get it in our ClojureScript build. We’re using clojure.future.spec alpha15.

borkdude11:04:26

Can’t reproduce it, but it happens now and then

benbot14:04:33

Hey so I just picked up clojure and i’m making a fun little app with it, but I hit a snag in frontend land. I can’t’ figure out exactly what the difference between om and om.next is. So… what’s the difference?

benbot14:04:16

And (I’m sure this is really opinionated but…) should I just be using reagent and re-frame instead?

spinningtopsofdoom14:04:03

Om is the first draft of mixing ClojureScript and React. Om.Next still mixes React and ClojureScript but takes a lot of inspiration from GraphQL and Falcor

spinningtopsofdoom14:04:21

You can get a better answer in the #om channel

benbot14:04:01

alright thanks 🙂

tankthinks14:04:32

has anyone played around with goog.net.IframeIo?

tankthinks14:04:45

specifically with cross-domain iframey stuff

sent1nel15:04:54

I hadn't yet heard of Om.Next, thanks @spinningtopsofdoom

spinningtopsofdoom15:04:10

NP glad to help 🙂

baptiste-from-paris16:04:48

Hello guys, It might be a dumb question but after generating a project with lein new figwheel, I have a out/cljs/core.cljs.cache.json file in my project. Someone knows what it is and what it is used for ? It looks like it’s and edn which dumps meta informations of core functions

dnolen17:04:22

@baptiste-from-paris we cache analysis to avoid reparsing source files