Skip to content

Instantly share code, notes, and snippets.

@hoeck
Created June 19, 2010 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoeck/444675 to your computer and use it in GitHub Desktop.
Save hoeck/444675 to your computer and use it in GitHub Desktop.
(defrecord FooCatalog [c])
(defmethod print-method FooCatalog [o w]
(.write w (str "#:user.FooCatalog{:c (ref " (pr-str @(:c o)) ")}")))
(FooCatalog. (ref {:a :b :c :d}))
=> #:user.FooCatalog{:c (ref {:a :b, :c :d})}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment