Can't reserialize deftypes #6

coventry opened this Issue Oct 7, 2013 · 0 comments


None yet

2 participants

coventry commented Oct 7, 2013

Clojure's print-dup framework has no default way to print deftype classes. E.g., put the following in tst4.cjl:

(ns tst4)
(deftype foo [a])[42]

And run

user> (try (sleight/wrap-reader {:transform identity}) (load "tst4") (sleight/unwrap-reader))
CompilerException java.lang.IllegalArgumentException: No method in multimethod 'print-dup' for dispatch value: class, compiling:(with_sleight/tst4.clj:1:257) 
@ztellman ztellman closed this Dec 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment