Fork me on GitHub
#clojure
<
2016-06-19
>
hiredman01:06:53

Use ProcessBuilder

borkdude10:06:40

wtf is happening here? (let [abc 1 abc 2 abc 3](println abc abc abc)) ;; => 1 2 3 nil

borkdude10:06:56

Ah @vijaykiran already posted it, sorry, didn't read ๐Ÿ™‚

sveri13:06:37

I remember having copied code which just would not compile. After retyping it, it worked, must have been something similar. I wonder what happens if SO started randomly inserting stuff like that into their solutions ๐Ÿ˜„

joost-diepenmaat14:06:34

is there an example of a reasonably complete clojure.spec for defn form? Working on a macro that is supposed to look and work very similar to defn

joost-diepenmaat14:06:38

I heard the plan is to implement specs for most of clojure.core but that workโ€™s not really started yet, right?

Alex Miller (Clojure team)15:06:16

I started it a month ago :)

Alex Miller (Clojure team)15:06:57

I have a defn spec with full support for destructuring but not ready to release it yet

mariogintili16:06:10

does anyone know how to embed an incanter graphic in the jupyter notebook?

borkdude18:06:42

I'm using clj-http to download some json and want to use convert it to edn. Why isn't this returning the body as edn? (client/get "" {:as :json})

borkdude18:06:23

Aha, I had to add cheshire as an optional dependency, warning would have been nice ๐Ÿ™‚

jorgedfbranco21:06:57

What's the problem with this code?

jorgedfbranco21:06:02

(first '( (do (println "Processing 1") 1) (do (println "Processing 2") 2)))

jorgedfbranco21:06:20

I would expect it to print out "Processing 1" and returning the value 1, but it doesn't

nathanmarz22:06:47

@jorgedfbranco: using ' is the same as using quote which suppresses evaluation of all forms within

nathanmarz22:06:07

so it will literally return you the list '(do (println "Processing 1") 1) with do and println being symbols

nathanmarz22:06:16

if you eval the return it will print and return 1

jorgedfbranco22:06:19

I wanted to use some sort of a lazy list/sequence

jorgedfbranco22:06:25

but vectors are strict

leifp22:06:18

If you wanted to write a custom REPL, where would you start? Right now, I'm thinking of starting at the reply source code, and working from there, but if anyone knows of alternative starting points, I am very interested.