Re: Problems with &form (in an effort to make serializable functions)

2012-04-17 Thread Caspar Hasenclever
The # appears when *print-level* is exceeded in pr/pr-str, just as you get "..." when *print-lengtht* is exceeded: (pr-str {:foo {:bar {:baz 3}}}) => "{:foo {:bar {:baz 3}}}" (set! *print-level* 2) => 2 (pr-str {:foo {:bar {:baz 3}}}) => "{:foo {:bar #}}" Could it be that a preceding test sets

Re: Problems with &form (in an effort to make serializable functions)

2012-04-17 Thread nathanmarz
OK, I dug into the Clojure source and found a way to solve my issue. If I wrap the pr-str in (binding [*print-dup* true] (pr-str form)) it works. On Apr 17, 5:34 pm, nathanmarz wrote: > So I've been hacking for the past day on making serializable functions > for Clojure (building off the work of

Problems with &form (in an effort to make serializable functions)

2012-04-17 Thread nathanmarz
So I've been hacking for the past day on making serializable functions for Clojure (building off the work of @technomancy in his serializable- fn repo). I'm running into a nasty problem though, and I really don't understand what's going on. One of the things I'm doing in my code ( https://github.c