Fork me on GitHub
#clojure
<
2015-08-09
>
isaac08:08:17

treat macro as function at compile time

shamatov18:08:41

Hello everyone

bronsa18:08:07

@isaac: use do instead of list

cddr18:08:15

Question about @ztellman's manifold streams. If you have a put! operation that might fail with an exception, what approach do you use to give details about the failure back to the caller when the put! itself returns just true or false?

ztellman19:08:48

cddr: put! returns a deferred value that can yield an exception

ztellman19:08:14

it’s just that if it’s a success result, that has to be true or false

greywolve19:08:57

does anyone know how to completely decouple a web servers request from its response, like was sort of possible in the old versions of pedestal:

greywolve19:08:11

bottom of that page

ztellman19:08:08

@greywolve: it’s not possible in the Ring model, you’ll need to use something that is a superset of it

greywolve19:08:36

thanks i'll have a look simple_smile

cddr20:08:13

Hm, so I'm trying to do something like this. Maybe I'm going about it the wrong way?

cddr20:08:15

(defn sink [] (-> (s/stream 1 (map (fn [msg] (throw (Exception. "yolo"))))) (s/sink-only))) (let [s (sink)] @(s/put! s 1))