juxt

onetom 2020-03-20T04:29:33.052300Z

what am i missing here?

(clip/start {:components {:uri {:start `(gensym)}}})
=> {:uri G__3963}
(clip/start {:components {:uri {:start `(str (gensym))}}})
=> {:uri ""}
I was expecting to get back something like "G__34645" instead of an empty string

onetom 2020-03-20T04:31:59.053400Z

ah, my hunch is that the pseudo evaluator is trying to look up the value of the symbol generated by (gensym)

onetom 2020-03-20T04:35:48.053900Z

circumvented the issue with this helper function for now:

(defn genstr
  ([] (str (gensym)))
  ([prefix] (str (gensym prefix))))

dominicm 2020-03-20T07:05:45.054500Z

Blugh, didn't think of functions returning symbols

dominicm 2020-03-20T07:34:27.054800Z

This is fixable I think.

dominicm 2020-03-20T09:38:31.055300Z

@onetom I just release 0.16 which has this patched.

👍 1