Skip to content

Instantly share code, notes, and snippets.

@swannodette
Created May 25, 2011 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save swannodette/990176 to your computer and use it in GitHub Desktop.
Save swannodette/990176 to your computer and use it in GitHub Desktop.
bug.clj
(deftype Foo []
Object
(equals [this x] (instance? 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