Fork me on GitHub
#juxt
<
2020-03-20
>
onetom04:03:33

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

onetom04:03:59

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

onetom04:03:48

circumvented the issue with this helper function for now:

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

dominicm07:03:45

Blugh, didn't think of functions returning symbols

dominicm07:03:27

This is fixable I think.

dominicm09:03:31

@onetom I just release 0.16 which has this patched.

👍 4