Skip to content

Instantly share code, notes, and snippets.

@philip-doctor
Created October 14, 2015 15:03
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 philip-doctor/5cbf329ae6f69bb33058 to your computer and use it in GitHub Desktop.
Save philip-doctor/5cbf329ae6f69bb33058 to your computer and use it in GitHub Desktop.
=> (defrecord Foo [bar]
#_=> Object
#_=> (toString [this] "toString representation"))
Foo
=> (log/info (->Foo "t"))
INFO [nREPL-worker-2] 2015-10-14 09:54:25,539 #Foo{:bar t}
nil
=> (log/info (str (->Foo "t")))
INFO [nREPL-worker-2] 2015-10-14 09:54:32,499 toString representation
nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment