Fork me on GitHub
#clojurescript
<
2016-12-26
>
anmonteiro01:12:58

@johanatan: sounds like a bug but I would double check your setup

johanatan01:12:29

oh, looks like it was actually a diff func than I thought it was: (.existsSync (node/require "fs") param). Any pointers on how to declare externs for node.js funcs?

johanatan02:12:36

oh, hmm. I already have that as a dependency of my project

pesterhazy10:12:58

johanatan, may I ask, why adv compilation with node?

johanatan18:12:18

@pesterhazy: dead code elimination and smaller download for NPM users

johanatan18:12:38

(Will 'simple' get the first one?)

martinklepsch18:12:34

@johanatan simple will not get you the first one

Aron18:12:50

if i need to use something from github, which method would you suggest https://github.com/tobyhede/lein-git-deps or clone and https://github.com/kumarshantanu/lein-localrepo ?

Aron18:12:58

or maybe something else?

qqq18:12:23

Is there a clj + cljs compatible way to throw/catch arbitrary clj data structures?

qqq18:12:42

I'm trying to implement "poor man's either monad" via exceptions.

pesterhazy18:12:29

Yes, ex-info

pesterhazy18:12:56

Learn to use ex-info, it's wonderful!

qqq19:12:08

@pesterhazy : 1. What is there to ex-info besides ex-data? 2. It turns out in cljs land, it's catch js/Error instead of catch Throwable

pesterhazy19:12:09

Ad 1, nothing :)

qqq19:12:10

In cljc, I know how to use #+clj and #+cljs. However, if I have macro that needs to expand to different things based on clj vs cljs, how do I do that? In particular, my macro needs to output (catch Throwable e ....) in clj land, and output (catch js/Error e ...) in cljs land.