Skip to content

Instantly share code, notes, and snippets.

View hiredman's full-sized avatar

Kevin Downey hiredman

View GitHub Profile
(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
;; src/beta3/trial.clj:
(ns beta3.trial)
(defrecord TrialRecord [first last])
;; src/beta3/core.clj:
(ns beta3.core
;; fails if this require is removed:
(:import beta3.trial.TrialRecord))