Skip to content

Instantly share code, notes, and snippets.

@hiredman
Forked from swannodette/gist:990176
Created May 25, 2011 02:17
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 hiredman/990194 to your computer and use it in GitHub Desktop.
Save hiredman/990194 to your computer and use it in GitHub Desktop.
bug.clj
(deftype Foo []
Object
(equals [this x] (instance? (resolve 'Foo) x)))
(let [f (Foo.)]
(.equals f f)) ; false, creates problems when looking up items in map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment